Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

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

NameTypeDescription
organizationIdstringThe organization ID of the organization a user belongs to.
userIdstringThe ID of the user.
rolestringThe role to assign user.

Last updated on December 19, 2023

What did you think of this content?

Clerk © 2024