Skip to main content
Mutation

removeProfileMember

Removes a member from the profile's team. Any member can remove themselves; otherwise requires being an owner, or an admin removing someone with a lower role. The last owner cannot be removed.

Arguments

  • profileIdID!

    ID of the profile.

  • targetUserIdID!

    ID of the member's account.

Returns

MutationSuccess!

Example

mutation RemoveProfileMember($profileId: ID!, $targetUserId: ID!) {
  removeProfileMember(profileId: $profileId, targetUserId: $targetUserId) {
    success
  }
}