Users
Orgs

Lists organizations a user is a member of.

get/v1/users/{userId}/orgs

Path parameters

userIdstring uuid required

Query parameters

OR
'name'
OR
'-name'
page[size]number
page[after]string
page[before]string
cliSelectableboolean

Return only organizations the user can sign a CLI into: those with an active WorkOS membership. Our database and WorkOS can disagree — a row here with no membership there is offered to the user, chosen, and then refused by WorkOS when the CLI completes the organization-selection grant.

Headers

Authorizationstring

Response

Default Response

Changes

Changed in 2 of the 26 revisions of this API.2

    • added the new optional query request parameter cliSelectable

      new-optional-request-parameter

    • added the required property data/items/attributes/slug to the response with the 200 status

      response-required-property-added