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

PUT /ws/rest/service/v1/dm/permission/{projectNumber}/node/{node_path}/remove/user/{username}?usertype={usertype}

Purpose

This service allows user to retrieve permissions of a node by node_path, project number, user/group name and user Type (either 'U' for user, 'PG' for group)

Input

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

node_path : full node_path of the required node.

username: comma separated user/group names based on usertype. If it is user(user login name should be given, if its group, group name should be given)

usertype: QueryParameter: 'U' for user, 'PG' for group.

Output:

Status of the remove permission.

Example:

To remove permissions of node "test3" under node path /test2 of projectnumber b1 for a given group "Asset Managers", give the URL as follows.

http://<host>:port>/ws/rest/service/v1/dm/permission/b1/node/test2/test3/user/Asset%20Managers?usertype=PG

Note: the usertype is either 'U' for user or 'PG' for project group.

Response in case of success:

[{ "message":

[ "Permissions removed successfully"

],

"status":200

}]]

Response in case of error: if given node path does not exist in the existing permission list:

[{"message":

[ "The given node path does not exist"

],

"status":1074

}]]



Legal Notices | Your Privacy Rights
Copyright © 1998, 2022

Last Published Tuesday, February 8, 2022