Remove role from user

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi.logto.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Logto API references MCP server": {
  "url": "https://openapi.logto.io/mcp"
}
Close
DELETE /api/users/{userId}/roles/{roleId}

Remove an API resource role from the user.

Path parameters

  • userId string Required

    The unique identifier of the user.

  • roleId string Required

    The unique identifier of the role.

Responses

  • 204

    The API resource role has been removed from the user.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

DELETE /api/users/{userId}/roles/{roleId}
curl \
 --request DELETE 'https://[tenant_id].logto.app/api/users/{userId}/roles/{roleId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"