A permission is a control granted to an individual account by an admin. Permissions are needed for controls that require permission, such as the Admin Access scope, and allow you to shield sensitive access from public use. Controls that don't require permission can be passed by anyone and don't need to be granted on an individual basis.
Permissions and consents are complementary: a permission is granted by an admin, while a consent is given by the user. A control can require both, in which case the account needs a permission and must also give consent. See Consents.
The permissions for a tenant can be retrieved via either the Admin UI, the Account UI, the Management API or the Agent API.
https://{tenant_id}.admin.quasr.io/controls/{control_id}/permissions. The permissions of an account are shown in its Controls tab at https://{tenant_id}.admin.quasr.io/accounts/{account_id}/controls.https://{tenant_id}.account.quasr.io/controls.listPermissions or getPermission operation can be used at https://{tenant_id}.api.quasr.io/graphql. See: https://documenter.getpostman.com/view/18129777/UVXgMHEv#b17a77c0-d2ce-4bc1-a42a-ad2f99109a23.list-permissions or get-permission tool can be used. See Agent API.https://api.quasr.io/scopes/account scope) can only retrieve their own permissions, and can't change them.Your tenant administrators: every account with a permission for Admin Access
An internal user's own permission in the Account UI: shown, but it can't be changed
A permission is granted to an account for a control, and applies to all applications the control is attached to. When an application requires or requests a control that requires permission, the account must have an enabled permission for it:
For example, the Admin Access control (https://api.quasr.io/scopes/admin) requires permission. Accounts with a permission for it are your tenant administrators, and the Admin UI requires it, which shields it from public use.
Permissions have the following configuration options:
control: string) - The ID of the control to grant. The control must exist in your tenant and must not be locked.account: string) - The ID of the account to grant the control to, either a user or an application. The account must exist in your tenant and must not be locked.label: string) - Textual label for the permission.status: string) - The current status of the permission: ENABLED or DISABLED (default). See Status.A permission can have one of the following statuses:
ENABLED) - The permission is granted.DISABLED) - The permission is revoked. Unlike a consent, it can be enabled again.LOCKED) - The permission was locked because its control or account was disabled. It can't be updated, and is restored to its previous status when the parent is enabled again.Permissions can be created via either the Admin UI, the Management API or the Agent API.
createPermission operation can be used at https://documenter.getpostman.com/view/18129777/UVXgMHEv#74d2bfbb-dc23-4af3-b22d-5b20a3bad653.create-permission tool can be used. See Agent API.Permissions can be updated or deleted via either the Admin UI, the Management API or the Agent API.
updatePermission operation can be used at https://documenter.getpostman.com/view/18129777/UVXgMHEv#b6a4b169-73fc-4286-94d6-e48514cc6b6d, or the deletePermission operation at https://documenter.getpostman.com/view/18129777/UVXgMHEv#74d02eae-f6f9-4fbd-8da8-3915096afa25.update-permission or delete-permission tool can be used. See Agent API.