Develop > API calls > Container APIs > Manage user access control on a container

Manage user access control on a container

Adds LDAP users and groups to the system and provides user access to a container specified by the Container ID parameter. To grant access on a container for all users, set the attribute "everyOneAccess" : "true".

URI Method Parameters Returns
http://[host]:[port]/csa/api/container/useraccess/{containerID} POST
  • Container ID
  • Body - A JSON containing the organization name, everyoneAccess attribute and group details.

200 - successful
400 - bad request
403 - not authorized
404 - not found

Example

The following URL was sent:

https://localhost:8444/csa/api/container/useraccess/72A82AD399D64A1FADABE348AA59DB90

The following JSON was provided in the RequestBody:

{ "organizationName": "CSA-Provider", "everyOneAccess": "false", "members": [ { "cn": "john", "dn": "CN=john,CN=Users", "emailid": "", "userAvatar": "", "memberOf": "CN=ApplicationDeveloper,CN=CSA_BLR_USERS", "type": "user" }, { "cn" : "G1", "dn": "CN=G1,CN=Users", "emailid" : "", "type" : "group" } ] }

There is no response output, and an empty JSON is returned.