Skip to main content

setWorkspaceAccountRoles

Replace a member's role assignments with exactly the given set, assigning and revoking as needed. Prefer this over sequencing assignRole and revokeRole: the invariants (at least one role, at least one workspace admin, no admin on a customer-side seat) hold across the whole change. Invalidates the workspace permission cache. Gated by accord.workspace.member.update.

setWorkspaceAccountRoles(
input: SetWorkspaceAccountRolesInput!
): RoleAssignmentPayload

Arguments

setWorkspaceAccountRoles.input ● SetWorkspaceAccountRolesInput! non-null input

The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.

Type

RoleAssignmentPayload object