updateOrganizationMembership()
Updates a user's OrganizationMembership
. Currently, only the role can be updated.
- Name
organizationId
- Type
string
- Description
The organization ID of the organization a user belongs to.
- Name
userId
- Type
string
- Description
The ID of the user.
- Name
role
- Type
string
- Description
The role to assign user.
Example
In the following example, you can see that the returned OrganizationMembership
object has its role
property updated to org:admin
.
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint PATCH/organizations/{organization_id}/memberships/{user_id}
. See the BAPI reference for more information.
Feedback
Last updated on