create_scim_workspace_mapping
Automatically grant access by mapping a SCIM group to a Portkey workspace role. Provide the group ID or name; a name can pre-create the group.
Instructions
Map one identity-provider SCIM group to a Portkey workspace role so current and future group members receive access automatically. Provide exactly one of scim_group_id or scim_group_name; a name can pre-create the Portkey SCIM group before the IdP provisions it. Use list_scim_groups to discover existing groups and list_workspaces for the workspace ID. This changes access provisioning and is distinct from add_workspace_member, which grants one user directly. Enterprise-gated. Returns 403 on non-Enterprise Portkey plans.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Workspace role automatically granted to group members | |
| workspace_id | Yes | Portkey workspace ID that the SCIM group should access | |
| scim_group_id | No | Existing identity-provider SCIM group ID; provide this or scim_group_name, but not both | |
| scim_group_name | No | Existing SCIM group display name; provide this or scim_group_id, but not both |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |