Skip to main content
Mutation

setSpaceMemberRole

Changes a member's rank in a space and returns the member. Requires the admin or owner role: an admin changes only members, and only to MEMBER; an owner changes anyone. A space always keeps at least one owner. Lowering someone to MEMBER closes their open sessions on the space's projects so they reconnect with their new access.

Arguments

  • The new rank.

  • spaceIdID!

    ID of the space.

  • userIdID!

    ID of the member.

Returns

SpaceMember!

Example

mutation SetSpaceMemberRole($role: SpaceRole!, $spaceId: ID!, $userId: ID!) {
  setSpaceMemberRole(role: $role, spaceId: $spaceId, userId: $userId) {
    email
    firstName
    lastName
    name
    role
    userId
  }
}