Remove a role from a user in an organization

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

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.

  • roleId string Required

    The unique identifier of the role.

Responses

  • 204

    The role was removed from the user successfully.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    The user is not a member of the organization; or the user does not have the role.

  • 422

    Unprocessable Content

DELETE /api/organizations/{id}/users/{userId}/roles/{roleId}
curl \
 -X DELETE https://[tenant_id].logto.app/api/organizations/{id}/users/{userId}/roles/{roleId}