Set Permissions in Document Manager

You can set permissions for files and folders in the Document Manager (DM) by way of the RESTful web services.

Setting permissions to folders and documents in the DM to users or groups through REST Services involves one of the following:

Authorization

Each V1 REST service includes a JWT token in the Authorization header. The integration username and password are required to create this token (for more information on creating this user, see Integration Users in the Unifier General Administration Guide). Make a GET request to "/ws/rest/service/v1/login" service with integration username and password as Basic Authentication. For more details, see V1 Get Token REST Service for Basic Authentication.

If the call is successful with 200 response code, the response will contain the JWT token and the expiry date (the token is valid for 6 months from issuance).

The 401 status code will be returned when the username/password combination is incorrect, the User is not an integration user, or when the User is not active.

Sample Response

{

"expiryDate": "2019/01/10 12:00 AM",

"status": 200,

"token": "eyJ0eXAiOiJEQiJ9.eyJ1c2VybmFtZSI6IiQkaW50ZWdyYXRpb25icCJ9.2F17ECA4-F553-DF21-BD3F-389AE3680675C80772B0EBF7BAD220BF36BA611BB6A5"

}

All REST Services must have the following set in the Header.

Header Sample

Key

Value

Authorization

Bearer eyJ0eXAiOiJEQiJ9.eyJ1c2VybmFtZSI6IiQkaW50ZWdyYXRpb25icCJ9.2F17ECA4-F553-DF21-BD3F-389AE3680675C80772B0EBF7BAD220BF36BA611BB6A5

Note: The same authorization token can be re-used for subsequent REST Service requests, until the expiry date.

See Also

Document Manager

Folder Services

Document Services

In This Section

Get Node Permissions by Node Path and Project Number

Get Node Permissions by Node Path, Project Number, and User or Group

Add Node Permissions by Node Path and Project Number

Update Node Permissions by Node Path and Project Number

Remove Node Permissions by Node Path and Project Number

Remove Node Permissions by Node Path, Project Number, and User or Group

Granting, Inheriting, and Pushing permissions to files or folders

Removing Permissions to Files or Folders



Last Published Tuesday, July 1, 2025