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)

Request Parameters

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.

Sample Request

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 Format

The REST service returns the status of the remove permission.

Sample Success Response

[

{ "message": [ "Permissions removed successfully" ],

"status":200

}

]

Sample Failed Response

If a given node path does not exist in the existing permission list, a response is returned with a status code.

[

{"message": [ "The given node path does not exist"],

"status":1074

}

]