Docs

You are viewing an archived version of the docs.Go to latest version

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});
  • 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.

Feedback

What did you think of this content?

Last updated on