It allows to modify the security of a document. It deletes the current ACL (Access Control List) and applies only one trustee to the document. It can be used both for documents and folders.


libraryeDOCS libraryString
userUser nameString
passwordUser passwordString
formThe name of the form used to create new folders.String
securityTypeDefines if the new trustee is a Group or a User.

  • 0 = Unknown
  • 1 = Group
  • 2 = User

accessRightsDefines the new access level that the trustee will have on the document or folder. Only values listed in Appendix B are permitted.

(See Appendix B to obtain information about the full list of allowed security values)

trusteeNameThe name of the User or Group. It must be valid on the library.String
docNumberDocument number. Only one document number is allowed.String
dbSchemaDatabase schema. By default is set to “DOCSADM” if an empty string is used.String
clientOptional parameter for the client codeString
projectOptional parameter for the project codeString

Rest Invoke

  • http://localhost:port/GSService/xml/ or http://localhost:port/GSService/json/
  • UriTemplate:
    • “/ChangeDocumentSecurity/?library={library}&user={user}&password={password}&form={form}&securityType={securityType}&accessRights={accessRights}&trusteeName={trusteeName}&docNumber={docNumber}&dbSchema={dbSchema}&client={client}&project={project}”
    • “/ChangeDocumentSecurityDST/?library={library}&user={user}&dst={dst}&form={form}&securityType={securityType}&accessRights={accessRights}&trusteeName={trusteeName}&docNumber={docNumber}&dbSchema={dbSchema}&client={client}&project={project}”



The method returns 0 if operation is successful or -1 if the operation fails.

DST Example



As this method returns an integer, detailed errors can be found in the error log. See Appendix D  for more information about the edocs.log file.