Skip to main content

removeOrganizationUser

Remove a user from an organization (revoke membership). Strips every role the user holds in the org so they are no longer a member; the Keycloak user account is NOT deleted (they may belong to other orgs). Rejects removing the organization's only admin. Requires change-user-roles permission on the organization.

removeOrganizationUser(
organizationId: String!
userId: String!
): Boolean!

Arguments

removeOrganizationUser.organizationId ● String! non-null scalar

removeOrganizationUser.userId ● String! non-null scalar

Type

Boolean scalar

The Boolean scalar type represents true or false.