Get organizations for a user
GET
/api/users/{userId}/organizations
Get all organizations that the user is a member of. In each organization object, the user's roles in that organization are included in the organizationRoles
array.
Path parameters
-
userId string Required
The unique identifier of the user.
GET /api/users/{userId}/organizations
curl \
-X GET https://[tenant_id].logto.app/api/users/{userId}/organizations
Response examples (200)
[
{
"id": "string",
"name": "string",
"description": "string",
"customData": {},
"createdAt": 42.0,
"organizationRoles": [
{
"id": "string",
"name": "string"
}
]
}
]