updateOrganizationMembership()
Updates a user's organization membership parameters. Currently, only the role can be updated.
const organizationId = 'my-organization-id'; const userId = 'my-user-id'; const role = 'role-to-assign-user'; const organization = await clerkClient.organizations.updateOrganizationMembership({organizationId, userId, role});
UpdateOrganizationMembershipParams
Name | Type | Description |
---|---|---|
organizationId | string | The organization ID of the organization a user belongs to. |
userId | string | The ID of the user. |
role | string | The role to assign user. |