clerk.create_organization_membership
Add a user to a Clerk organization with a specified role.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Returns the created membership.
Cost = 10 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Role to assign to the user in the organization (e.g. org:member, org:admin). | |
| user_id | Yes | Clerk user id (user_...) of the user to add. | |
| organization_id | Yes | Clerk organization id (org_...) to add the member to. | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| membership | No | Created organization membership. |