Organization Permissions
The MANAGE Organization permission gives the access to actions and resources across the entire GoodData.CN deployment. This permission should be reserved for administrators.
Note
Permissions are a beta feature. Please note that the implementation of these features is not finalized, and the behavior or interface of these features is subject to change.
Supported Permissions
The following permissions are applicable to the Organization object type:
MANAGEUser has access to any protected action or resource.
Set Permissions For an Organization
Permissions for an organization are set using the /api/layout/organization declarative API endpoint.
Steps:
Make the following API call to fetch an up-to-date
jsondefinition of your organization layout:curl -H "Authorization: Bearer <your_bearer_token>" \ -H "Content-Type: application/json" \ -X GET \ <your_hostname>/api/layout/organizationIn the organization layout
jsonfile, update thepermissionsdefinition:{ "organization": { ..., "permissions": [ { "assignee": { "id": "<user_id_or_user_group_id>", "type": "<user_or_userGroup>" }, "name": "MANAGE" } ] } }Update the organization using your updated
jsonin the following API call:curl -H "Authorization: Bearer <your_bearer_token>" \ -H "Content-Type: application/json" \ -X PUT \ <your_hostname>/api/layout/organization -d @<your_updated_organization_layout>.json