Users

Get organizations for a user

Changed on

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.

get/api/users/{userId}/organizations

Request

  • Base URL: https://[tenant_id].logto.app
  • URL: https://[tenant_id].logto.app/api/users/{userId}/organizations
  • Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)

Path parameters

userIdstring required

The unique identifier of the user.

Response

An array of organizations that the user is a member of.

tenantIdstring required
idstring required
namestring required
descriptionstring nullable required
customDataobject required

arbitrary

isMfaRequiredboolean required
isTrustedDeviceAllowedboolean required
customCssstring nullable required
createdAtnumber required

Changes