Manage Access
Access is managed through the ACL object on the resource.
The ACL object displays the permissions that have been explicitly assigned to the resource. The resource may have additional permissions inherited from its parents. See ACL for more information.
Updating the ACL requires submitting the full array in the request. Below are the steps to add or remove permissions for a space.
Prerequisites
Section titled “Prerequisites”- A space should be created. To know more about creating a space refer here
Add permission for a space
Section titled “Add permission for a space”- Using PATCH API, space permissions can be updated.
- Assume
applicationId1already provided spaceManager permission during creation. Now,applicationId2needs to be added as spaceManager for the space.
- Assume
PATCH {baseUrl}/spaces/{spaceId}-
HEADER:
- Authorization:
Bearer {tid token}
- Authorization:
-
BODY:
acl- Access control list for the space
Remove permission for a space
Section titled “Remove permission for a space”- Using PATCH API space permissions can be updated.
- Assume both
applicationId1andapplicationId2provided spaceManager permission during creation. Now,applicationId2needs to be removed as spaceManager for the space.
- Assume both
PATCH {baseUrl}/spaces/{spaceId}-
HEADER:
- Authorization:
Bearer {tid token}
- Authorization:
-
BODY:
acl- Access control list for the space
Similarly, folders and files ACL can also be updated. See here for updating ACLs for folders and files. To know more about update ACL for space refer here.