Remove a role from a user in an organization

DELETE /api/organizations/{id}/users/{userId}/roles/{organizationRoleId}

Remove a role assignment from a user in the specified organization.

Path parameters

  • id string Required

    The unique identifier of the organization.

  • userId string Required

    The unique identifier of the user.

  • organizationRoleId string Required

    The unique identifier of the organization role.

Responses

  • The role was removed from the user successfully.

  • Bad Request

  • Unauthorized

  • Forbidden

  • Cannot find the record to delete.

  • The user is not a member of the organization.

DELETE /api/organizations/{id}/users/{userId}/roles/{organizationRoleId}
curl \
 -X DELETE https://[tenant_id].logto.app/api/organizations/{id}/users/{userId}/roles/{organizationRoleId} \
 -H "Authorization: Bearer $ACCESS_TOKEN"