WorkOS

user_management.organization_memberships.create

Creates a new `active` organization membership for the given organization and user. Calling this API with an organization and user that match an `inactive` organization membership will activate the membership with the specified role(s).

Remote workos

Other tools also called user_management.organization_memberships.create? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "user_id": {
      "type": "string",
      "description": "The ID of the [user](/reference/authkit/user)."
    },
    "role_slug": {
      "type": "string",
      "description": "A single role identifier. Defaults to `member` or the explicit default role. Mutually exclusive with `role_slugs`."
    },
    "role_slugs": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "An array of role identifiers. Limited to one role when Multiple Roles is disabled. Mutually exclusive with `role_slug`."
    },
    "organization_id": {
      "type": "string",
      "description": "The ID of the [organization](/reference/organization) which the user belongs to."
    }
  }
}
          

Provider

WorkOS →