Skip to content

Access management

Generated from the gateway schema. Do not edit.

Queries

iamPrincipals

Members and service accounts with their access. With permission, only those who hold it ("who can do this?").

query { iamPrincipals(permission: String): [IamPrincipal!]! }

Requires: tenant ADMIN

Argument Type Description
permission String

Returns: [IamPrincipal!]!

iamRoles

Built-in and custom roles of the tenant.

query { iamRoles: [IamRole!]! }

Requires: tenant ADMIN

Returns: [IamRole!]!

myPermissions

What the caller may do in the whole of the current tenant.

query { myPermissions: [String!]! }

Requires: an authenticated member of the tenant

Returns: [String!]!

myScopedPermissions

What the caller may do for some objects only, in addition to myPermissions.

query { myScopedPermissions: [ScopedPermission!]! }

Requires: an authenticated member of the tenant

Returns: [ScopedPermission!]!

permissionCatalogue

Every permission that exists, with its description. The same for all tenants.

query { permissionCatalogue: [Permission!]! }

Requires: an authenticated member of the tenant

Returns: [Permission!]!

resourceLabels

Labels of the tenant's objects of one type, or of one object. Only objects the caller may see are listed.

query { resourceLabels(resourceType: String!, name: String): [ResourceLabels!]! }

Requires: an authenticated member of the tenant

Argument Type Description
resourceType String!
name String

Returns: [ResourceLabels!]!

resourceTypes

The kinds of object access can be limited to. The same for all tenants.

query { resourceTypes: [ResourceType!]! }

Requires: an authenticated member of the tenant

Returns: [ResourceType!]!

Mutations

createIamRole

mutation { createIamRole(input: IamRoleInput!): IamRole! }

Requires: tenant ADMIN

Argument Type Description
input IamRoleInput!

Returns: IamRole!

deleteIamRole

Refused while the role is still assigned to someone.

mutation { deleteIamRole(name: String!): Boolean! }

Requires: tenant ADMIN

Argument Type Description
name String!

Returns: Boolean!

grantExternalServiceAccount

Let an external service account (workload identity) into the tenant, restricted to the given permissions. An account that is already in the tenant is returned unchanged.

mutation { grantExternalServiceAccount(input: GrantExternalServiceAccountInput!): IamPrincipal! }

Requires: tenant ADMIN

Argument Type Description
input GrantExternalServiceAccountInput!

Returns: IamPrincipal!

grantPermissions

mutation { grantPermissions(username: String!, permissions: [String!]!): IamPrincipal! }

Requires: tenant ADMIN

Argument Type Description
username String!
permissions [String!]!

Returns: IamPrincipal!

revokeExternalServiceAccount

Remove an external service account from the tenant and drop its grants. Give exactly one of uid and email.

mutation { revokeExternalServiceAccount(uid: String, email: String): Boolean! }

Requires: tenant ADMIN

Argument Type Description
uid String
email String

Returns: Boolean!

revokePermissions

mutation { revokePermissions(username: String!, permissions: [String!]!): IamPrincipal! }

Requires: tenant ADMIN

Argument Type Description
username String!
permissions [String!]!

Returns: IamPrincipal!

setPrincipalAccess

Set a principal's custom roles, direct grants and whether its built-in role counts.

mutation { setPrincipalAccess(input: SetPrincipalAccessInput!): IamPrincipal! }

Requires: tenant ADMIN

Argument Type Description
input SetPrincipalAccessInput!

Returns: IamPrincipal!

setResourceLabels

Replace the labels of one object. A label can bring the object into the scope of someone's access, so this is an access-management action.

mutation { setResourceLabels(resourceType: String!, name: String!, labels: [ResourceLabelInput!]!): ResourceLabels! }

Requires: tenant ADMIN

Argument Type Description
resourceType String!
name String!
labels [ResourceLabelInput!]!

Returns: ResourceLabels!

updateIamRole

mutation { updateIamRole(input: IamRoleInput!): IamRole! }

Requires: tenant ADMIN

Argument Type Description
input IamRoleInput!

Returns: IamRole!