Skip to content

Permission groups

Update permission group

Update a permission group. Omitted fields remain unchanged; config keys are patched and supplied arrays replace their lists. Promoting a group to default demotes the previous default; demoting without workspaceIds leaves it inactive. Overlapping member or all-member scopes conflict. Requires organization Admin or owner access and active Access Control. Workspace API keys return `403`; use a personal API key or scoped OAuth token. OAuth scope: `api:write`.

PATCH/api/v2/organizations/{organizationId}/permission-groups/{groupId}

Update a permission group. Omitted fields remain unchanged; config keys are patched and supplied arrays replace their lists. Promoting a group to default demotes the previous default; demoting without workspaceIds leaves it inactive. Overlapping member or all-member scopes conflict. Requires organization Admin or owner access and active Access Control. Workspace API keys return 403; use a personal API key or scoped OAuth token.

OAuth scope: api:write.

Authentication

Send a personal or workspace API key in X-API-Key. See key types and access; operations that reject workspace keys say so in their description.

Send X-API-Key in the request header.

Alternatively

Send a Sim OAuth access token in Authorization: Bearer. See OAuth authentication and scopes.

Authorization: Bearer YOUR_ACCESS_TOKEN

Required scopes: api:write

OAuth flows
json
{
  "authorizationCode": {
    "authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
    "tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "scopes": {
      "api:read": "Read your workspaces, workflows, files, tables, and logs",
      "api:write": "Read, create, change, run, and delete resources in your workspaces",
      "offline_access": "Stay signed in without asking again"
    }
  }
}

OAuth scope: api:write.

Path parameters

organizationIdstringRequired

Organization that owns the permission groups.

minLength
1
groupIdstringRequired

Permission group identifier.

minLength
1

Request body

Required

Group fields and restriction keys to change; supplied lists replace their contents.

object

Group fields and restriction keys to change; supplied lists replace their contents.

5 fields
namestring

Group name, unique within the organization.

minLength
1
maxLength
100
descriptionvalue

Group description. Null or an empty string clears it; omission leaves it unchanged.

Schema details

Any of

Option 1string
maxLength
500
Option 2null
configobject

Patch of group settings. Omitted keys remain unchanged; each supplied array replaces that entire list.

45 fields
allowedIntegrationsvalue

Integrations and blocks are limited to this list. Null permits every value; an empty list permits none.

Schema details

Any of

Option 1array
Schema details
Array itemstring
Option 2null
allowedModelProvidersvalue

Model providers are limited to this list. Null permits every value; an empty list permits none.

Schema details

Any of

Option 1array
Schema details
Array itemstring
Option 2null
deniedModelsarray

Models listed in this list are blocked.

Schema details
Array itemstring
deniedToolsarray

Integration tools listed in this list are blocked.

Schema details
Array itemstring
hideTraceSpansboolean

Withhold per-block trace spans from logs and from the API.

hideKnowledgeBaseTabboolean

Revoke the Knowledge Base module. Members cannot open, search, or query any knowledge base.

hideTablesTabboolean

Revoke the Tables module. Members cannot read or write any table.

hideCopilotboolean

Revoke Chat. Members cannot ask Sim to build or edit anything.

hideIntegrationsTabboolean

Revoke integration connections. Members cannot view, add, or remove an OAuth connection.

hideSecretsTabboolean

Revoke secrets. Members cannot read, add, or change a workspace environment variable.

hideApiKeysTabboolean

Revoke workspace API keys. Members cannot list, create, or revoke one.

hideInboxTabboolean

Revoke the Sim Mailer inbox. Members cannot read or send mail.

hideFilesTabboolean

Revoke the Files module. Members cannot list, upload, or download workspace files.

disableMcpToolsboolean

Block agents from calling MCP tools.

disableCustomToolsboolean

Block agents from calling user-defined custom tools.

disableSkillsboolean

Block agents from loading skills.

disableInvitationsboolean

Prevent inviting anyone to a workspace or to the organization.

disablePublicApiboolean

Revoke public API access. Calls to a deployed workflow are refused.

disablePublicFileSharingboolean

Revoke public file sharing. Members cannot create a share link.

allowedFileShareAuthTypesvalue

Public file-share authentication is limited to this list. Null permits every value; an empty list permits none.

Schema details

Any of

Option 1array
Schema details
Array itemstring
enum
["public","password","email","sso"]
Option 2null
hideDeployApiboolean

Prevent deploying a workflow as an API endpoint.

hideDeployMcpboolean

Prevent exposing a workflow as an MCP server.

hideDeployChatbotboolean

Prevent deploying a workflow as a chat.

allowedChatDeployAuthTypesvalue

Chat deployment authentication is limited to this list. Null permits every value; an empty list permits none.

Schema details

Any of

Option 1array
Schema details
Array itemstring
enum
["public","password","email","sso"]
Option 2null
disablePersonalApiKeysboolean

Prevent members from using a personal API key against this workspace.

disableLogExportboolean

Prevent downloading execution logs as a CSV.

hideCostInfoboolean

Withhold execution cost. Logs and member exports omit cost and token spend; organization-level data drains, configurable by org admins only, are not projected.

disableKnowledgeBaseCreationboolean

Prevent creating knowledge bases, leaving existing ones queryable.

disableKnowledgeBaseFileUploadboolean

Prevent uploading local documents, leaving sanctioned connectors as the only source.

allowedKnowledgeConnectorsvalue

Knowledge base connectors are limited to this list. Null permits every value; an empty list permits none.

Schema details

Any of

Option 1array
Schema details
Array itemstring
Option 2null
disableTableCreationboolean

Prevent creating tables, leaving existing ones usable.

disableTableExportboolean

Prevent downloading a whole table as CSV or JSON.

disableBulkFileDownloadboolean

Prevent downloading folders as an archive.

disablePersonalCredentialsboolean

Prevent connecting personal credentials, leaving only workspace-shared ones.

disableWorkspaceCreationboolean

Prevent creating new workspaces, which no existing group would govern. Read from the organization's default group, because creating a workspace names none.

hideOrgMemberDirectoryboolean

Withhold the member directory. Members cannot see the names or email addresses of other members. Read from the organization's default group, because the directory belongs to the organization and names no workspace.

disableCliAccessboolean

Prevent approving a CLI login or using Sim CLI OAuth tokens for the public API. A login naming one of this group's workspaces is refused; an account-level login names none, so it is read from the organization's default group.

disableWebhookTriggersboolean

Prevent making a workflow reachable from an inbound webhook.

disableToolAutoApprovalboolean

Prevent silencing a tool confirmation, so every call is confirmed again.

hideSandboxesTabboolean

Revoke the Sandboxes module. Members cannot view, create, or change a workspace sandbox.

disableOAuthAppAccessboolean

Prevent OAuth apps from accessing this group's workspaces. The organization's default group also governs authorizing apps and refreshing their access.

disableKnowledgeBaseExportboolean

Prevent downloading a whole knowledge base as an archive.

deniedPartialAccessProjectIssuesarray

Issues in the listed Projects are unavailable to teammates without access to every active environment.

Schema details
Array itemstring
minLength
1
maxLength
255
defaultAgentModelvalue

Default model for new Agent blocks. Null uses the platform default.

Schema details

Any of

Option 1string
minLength
1
Option 2null
deniedAccessRequestsarray

Access requests are unavailable for the listed canonical target keys when access is restricted.

Schema details
Array itemstring
minLength
1
maxLength
1024

Additional properties are not allowed.

isDefaultboolean

Whether the group is the organization default. Only one group can be the default.

workspaceIdsarray

Workspace identifiers for a non-default group. Required on creation; an empty update makes the group inactive.

maxItems
500
Schema details
Array itemstring
minLength
1

Additional properties are not allowed.

Request example 1

json
{
  "description": "Restricted workspace access"
}

Responses

200

The updated group with resolved settings and workspace scope.

object

The updated group with resolved settings and workspace scope.

1 field
dataobjectRequired

Response data.

11 fields
idstringRequired

Permission group identifier.

organizationIdstringRequired

Organization that owns the group.

namestringRequired

Group name, unique within the organization.

descriptionvalueRequired

Optional description of the group.

Schema details

Any of

Option 1string
Option 2null
configobjectRequired

Resolved group settings. True disables a boolean capability; null allowlists permit every value and empty allowlists permit none. defaultAgentModel selects the default for new Agent blocks without restricting model selection.

45 fields
allowedIntegrationsvalueRequired

Integrations and blocks are limited to this list. Null permits every value; an empty list permits none.

Schema details

Any of

Option 1array
Schema details
Array itemstring
Option 2null
allowedModelProvidersvalueRequired

Model providers are limited to this list. Null permits every value; an empty list permits none.

Schema details

Any of

Option 1array
Schema details
Array itemstring
Option 2null
deniedModelsarrayRequired

Models listed in this list are blocked.

default
[]
Schema details
Array itemstring
deniedToolsarrayRequired

Integration tools listed in this list are blocked.

default
[]
Schema details
Array itemstring
hideTraceSpansbooleanRequired

Withhold per-block trace spans from logs and from the API.

hideKnowledgeBaseTabbooleanRequired

Revoke the Knowledge Base module. Members cannot open, search, or query any knowledge base.

hideTablesTabbooleanRequired

Revoke the Tables module. Members cannot read or write any table.

hideCopilotbooleanRequired

Revoke Chat. Members cannot ask Sim to build or edit anything.

hideIntegrationsTabbooleanRequired

Revoke integration connections. Members cannot view, add, or remove an OAuth connection.

hideSecretsTabbooleanRequired

Revoke secrets. Members cannot read, add, or change a workspace environment variable.

hideApiKeysTabbooleanRequired

Revoke workspace API keys. Members cannot list, create, or revoke one.

hideInboxTabbooleanRequired

Revoke the Sim Mailer inbox. Members cannot read or send mail.

hideFilesTabbooleanRequired

Revoke the Files module. Members cannot list, upload, or download workspace files.

disableMcpToolsbooleanRequired

Block agents from calling MCP tools.

disableCustomToolsbooleanRequired

Block agents from calling user-defined custom tools.

disableSkillsbooleanRequired

Block agents from loading skills.

disableInvitationsbooleanRequired

Prevent inviting anyone to a workspace or to the organization.

disablePublicApibooleanRequired

Revoke public API access. Calls to a deployed workflow are refused.

disablePublicFileSharingbooleanRequired

Revoke public file sharing. Members cannot create a share link.

allowedFileShareAuthTypesvalueRequired

Public file-share authentication is limited to this list. Null permits every value; an empty list permits none.

Schema details

Any of

Option 1array
Schema details
Array itemstring
enum
["public","password","email","sso"]
Option 2null
hideDeployApibooleanRequired

Prevent deploying a workflow as an API endpoint.

hideDeployMcpbooleanRequired

Prevent exposing a workflow as an MCP server.

hideDeployChatbotbooleanRequired

Prevent deploying a workflow as a chat.

allowedChatDeployAuthTypesvalueRequired

Chat deployment authentication is limited to this list. Null permits every value; an empty list permits none.

Schema details

Any of

Option 1array
Schema details
Array itemstring
enum
["public","password","email","sso"]
Option 2null
disablePersonalApiKeysbooleanRequired

Prevent members from using a personal API key against this workspace.

disableLogExportbooleanRequired

Prevent downloading execution logs as a CSV.

hideCostInfobooleanRequired

Withhold execution cost. Logs and member exports omit cost and token spend; organization-level data drains, configurable by org admins only, are not projected.

disableKnowledgeBaseCreationbooleanRequired

Prevent creating knowledge bases, leaving existing ones queryable.

disableKnowledgeBaseFileUploadbooleanRequired

Prevent uploading local documents, leaving sanctioned connectors as the only source.

allowedKnowledgeConnectorsvalueRequired

Knowledge base connectors are limited to this list. Null permits every value; an empty list permits none.

Schema details

Any of

Option 1array
Schema details
Array itemstring
Option 2null
disableTableCreationbooleanRequired

Prevent creating tables, leaving existing ones usable.

disableTableExportbooleanRequired

Prevent downloading a whole table as CSV or JSON.

disableBulkFileDownloadbooleanRequired

Prevent downloading folders as an archive.

disablePersonalCredentialsbooleanRequired

Prevent connecting personal credentials, leaving only workspace-shared ones.

disableWorkspaceCreationbooleanRequired

Prevent creating new workspaces, which no existing group would govern. Read from the organization's default group, because creating a workspace names none.

hideOrgMemberDirectorybooleanRequired

Withhold the member directory. Members cannot see the names or email addresses of other members. Read from the organization's default group, because the directory belongs to the organization and names no workspace.

disableCliAccessbooleanRequired

Prevent approving a CLI login or using Sim CLI OAuth tokens for the public API. A login naming one of this group's workspaces is refused; an account-level login names none, so it is read from the organization's default group.

disableWebhookTriggersbooleanRequired

Prevent making a workflow reachable from an inbound webhook.

disableToolAutoApprovalbooleanRequired

Prevent silencing a tool confirmation, so every call is confirmed again.

hideSandboxesTabbooleanRequired

Revoke the Sandboxes module. Members cannot view, create, or change a workspace sandbox.

disableOAuthAppAccessbooleanRequired

Prevent OAuth apps from accessing this group's workspaces. The organization's default group also governs authorizing apps and refreshing their access.

disableKnowledgeBaseExportbooleanRequired

Prevent downloading a whole knowledge base as an archive.

deniedPartialAccessProjectIssuesarrayRequired

Issues in the listed Projects are unavailable to teammates without access to every active environment.

default
[]
Schema details
Array itemstring
minLength
1
maxLength
255
defaultAgentModelvalueRequired

Default model for new Agent blocks. Null uses the platform default.

default
null
Schema details

Any of

Option 1string
minLength
1
Option 2null
deniedAccessRequestsarrayRequired

Access requests are unavailable for the listed canonical target keys when access is restricted.

default
[]
Schema details
Array itemstring
minLength
1
maxLength
1024

Additional properties are not allowed.

isDefaultbooleanRequired

Whether this is the organization fallback group. It governs a human caller with no applicable workspace-specific group; its own membership assignments do not limit its audience. Organization-level actions use the default group.

membershipModestringRequired

When no explicit assignments exist, an inherit group governs every member in its targeted workspaces. An empty explicit group, including a SCIM-managed group, governs nobody.

workspaceIdsarrayRequired

Workspaces governed by a non-default group. Empty for the default group.

Schema details
Array itemstring
createdBystringRequired

User who created the group.

createdAtstringRequired

When the group was created.

format
date-time
pattern
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
updatedAtstringRequired

When the group was last updated.

format
date-time
pattern
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$

Additional properties are not allowed.

Additional properties are not allowed.

Response example 1

json
{
  "data": {
    "id": "group-123",
    "organizationId": "org-123",
    "name": "Restricted",
    "description": null,
    "config": {
      "allowedIntegrations": null,
      "allowedModelProviders": null,
      "deniedModels": [],
      "deniedTools": [],
      "hideTraceSpans": false,
      "hideKnowledgeBaseTab": false,
      "hideTablesTab": false,
      "hideCopilot": false,
      "hideIntegrationsTab": false,
      "hideSecretsTab": false,
      "hideApiKeysTab": false,
      "hideInboxTab": false,
      "hideFilesTab": false,
      "disableMcpTools": false,
      "disableCustomTools": false,
      "disableSkills": false,
      "disableInvitations": false,
      "disablePublicApi": false,
      "disablePublicFileSharing": false,
      "allowedFileShareAuthTypes": null,
      "hideDeployApi": false,
      "hideDeployMcp": false,
      "hideDeployChatbot": false,
      "allowedChatDeployAuthTypes": null,
      "disablePersonalApiKeys": false,
      "disableLogExport": false,
      "hideCostInfo": false,
      "disableKnowledgeBaseCreation": false,
      "disableKnowledgeBaseFileUpload": false,
      "allowedKnowledgeConnectors": null,
      "disableTableCreation": false,
      "disableTableExport": false,
      "disableBulkFileDownload": false,
      "disablePersonalCredentials": false,
      "disableWorkspaceCreation": false,
      "hideOrgMemberDirectory": false,
      "disableCliAccess": false,
      "disableWebhookTriggers": false,
      "disableToolAutoApproval": false,
      "hideSandboxesTab": false,
      "disableOAuthAppAccess": false,
      "disableKnowledgeBaseExport": false,
      "deniedPartialAccessProjectIssues": [],
      "defaultAgentModel": null,
      "deniedAccessRequests": []
    },
    "isDefault": false,
    "membershipMode": "inherit",
    "workspaceIds": [
      "workspace-123"
    ],
    "createdBy": "admin-123",
    "createdAt": "2026-06-01T09:00:00.000Z",
    "updatedAt": "2026-06-01T09:00:00.000Z"
  }
}

Response headers

X-RateLimit-Limitinteger

Maximum requests allowed in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Remaininginteger

Requests remaining in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Resetstring

ISO 8601 timestamp when the current rate-limit window resets.

format
date-time
pattern
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Was this helpful?
Suggest an edit