Get Node Permissions by Node Path and Project Number

GET /ws/rest/service/v1/dm/permission/{projectNumber}/node/{node_path}

Purpose

This service allows user to retrieve permissions of a node by node_path and project number.

Input

Path parameter:

projectnumber: (Optional) project number(if not given, default is company workspace)

node_path: (Path parameter) full node_path of the required node.

Output:

JSON object containing permissions data

Example:

To get the permissions of node "test3" under path "/tes2" of projectnumber b1, give the url as follows.

http://<host>:port>/ws/rest/service/v1/dm/permission/b1/node/test2/test3

Response in case of success:

{

"Inheritance": false,

"ApplyToAllSubFolders": false,

"UserPermission": [

{

"Type": "PG",

"GroupName": "Asset Managers",

"FullName": "Asset Managers",

"DocumentPermission": {

"View": 1,

"Move": 1,

"Copy": 1,

"Delete": 1,

"Download": 1,

"ModifyProperties": 1,

"ModifyPermissions": 1,

"AddComments": 1,

"Revise": 1

},

"FolderPermission": {

"View": 1,

"Move": 1,

"Copy": 1,

"Delete": 1,

"ModifyProperties": 1,

"ModifyPermissions": 1,

"CreateSubFolders": 1,

"AddDocuments": 1

},

{

"Type": "U",

"LoginName": "coadmin",

"FullName": "Company Administrator",

"DocumentPermission": {

"View": 1,

"Move": 0,

"Copy": 0,

"Delete": 0,

"Download": 0,

"ModifyProperties": 0,

"ModifyPermissions": 0,

"AddComments": 0,

"Revise": 0

},

"FolderPermission": {

"View": 1,

"Move": 0,

"Copy": 1,

"Delete": 1,

"ModifyProperties": 1,

"ModifyPermissions": 1,

"CreateSubFolders": 1,

"AddDocuments": 1

}

}

]

}

Response in case of error:

{

"message": ["Invalid Node Path"],

"status": 1075

}



Legal Notices | Your Privacy Rights
Copyright © 1998, 2022

Last Published Tuesday, February 8, 2022