Create an organization membership
Creates an organization membership in your WorkOS environment.
POST
Body
Arguments
stringrequired
The ID of the user.
stringrequired
The ID of the organization which the user belongs to.
string
A single role identifier. Defaults to member or the explicit default role. Mutually exclusive with role_slugs.
string
An array of role identifiers. Limited to one role when Multiple Roles is disabled. Mutually exclusive with role_slug.
Field selectionChoose which fields should be included in the response. Learn more
string
Comma-separated response fields to include.