Working with roles for folders
Added by IBM contributorElizabeth Bowling | Edited by Claudia R Elbourn on August 24, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Add and remove users and groups from access roles for a folder.

Use the following methods to add and remove users from access roles, and to retrieve information about roles and the users assigned to them.

POST

/files/{auth}/api/collection/{collection-id}/roles/{role-type}/members

Assigning a single user or group to a role for a folder.
POST /files/{auth}/api/communitycollection/{community-id}/roles/{role-type}/members Assigning a single user or group to a role for a community folder.
POST

/files/{auth}/api/collection/{collection-id}/roles/

/files/{auth}/api/communitycollection/{community-id}/roles/

Assigning multiple users to a role for a folder.
GET /files/{auth}/api/collection/{collection-id}/roles Retrieving the list of roles for a folder.
GET /files/{auth}/api/communitycollection/{community-id}/roles Retrieving the list of roles for a community folder.
GET /files/{auth}/api/collection/{collection-id}/roles/{role-type}/members Retrieving the list of members of a specified role for a folder.
GET /files/{auth}/api/communitycollection/{community-id}/roles/{role-type}/members Retrieving the list of members of a specified role for a community folder.
GET /files/{auth}/api/collection/{collection-id}/roles/{role-type} Retrieving the membership details of a specified role for a folder.
GET /files/{auth}/api/communitycollection/{community-id}/roles Retrieving the membership details of a specified role for a community folder.
DELETE /files/{auth}/api/collection/{collection-id}/roles/{role-type}/members/{member-id} Removing a user or group from a role.
DELETE /files/{auth}/api/communitycollection/{community-id}/roles/{role-type}/members/{member-id} Removing a user or group from a community role.
DELETE

/files/{auth}/api/collection/{collection-id}/roles/{role-type}/members/{member-id}

/files/{auth}/api/communitycollection/{community-id}/roles/{role-type}/members/{member-id}

Removing a user or group from a role for a folder.