Types
Permission
Describes something a user is allowed to do in a tenant, such as read:sources. Users get permissions through their roles or directly.
object
PermissionFields
description
String!
What the permission allows.
id
String!
Raw id of the permission. Mutations take key instead.
key
String!
Key of the permission (e.g. read:sources, write:users). Keys of the form <app>:read:app (e.g. studio:read:app) give access to an Occtoo app and are the only ones you can grant directly.
name
String!
Readable name of the permission.
roles
[Role!]!
Roles that give the user this permission; only their id and key are filled. Empty when the permission is granted directly (see updateUserPermissions).
Was this page helpful?