createOrganizationMembership()
Creates a membership to an organization for a user directly (circumventing the need for an invitation).
- Name
organizationId
- Type
string
- Description
The organization ID of the organization a user is being added to.
- Name
userId
- Type
string
- Description
The user ID of the user being added to the organization.
- Name
role
- Type
string
- Description
The role to assign the added user within the organization.
Example
In the following example, an OrganizationMembership
is created for a user with the role org:member
.
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint POST/organizations/{organization_id}/memberships
. See the BAPI reference for more details.
Feedback
Last updated on