Skip to content
List a group's overrides

List a group's overrides

List the tool policy overrides a group sets for its members, across all integrations.

GET/api/v1/groups/:groupId/tool-policies

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/groups/team_42/tool-policies", {
  method: "GET",
  headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();

Use your server-side apiKey. Replace the example IDs.

Path parameters#

groupIdstringrequired

Your application's group ID, URL-encoded. At most 512 characters, with no surrounding whitespace or null bytes.

Responses#

Returns items, without a pagination cursor. Returns integration, toolName, policy (the setting at this level: allow, ask, deny, or inherit when there is no override), effectivePolicy (allow, ask, or deny), and source: integration_default, world_override, group_override, user_override, workspace_hidden, group_hidden, or disabled. hiddenInWorlds lists the Worlds (id and name) that hide the tool, where the override doesn't apply.

200 response
{
  "items": [
    {
      "integration": "github",
      "toolName": "issue_write",
      "policy": "ask",
      "effectivePolicy": "ask",
      "source": "group_override",
      "hiddenInWorlds": []
    }
  ]
}
More about this endpoint

Group overrides apply to every call in the group's sessions: on the group's connection, on a member's own account, and for tools without a connection, such as built-in and custom tools. They replace the member's own override while they are set. Sessions of another group, and groupless sessions, don't use them. They can also be edited in the dashboard.

A group override beats a user override, which beats a World override, which beats the workspace default. The group is the one the session acts for, and its overrides apply to every call in the session. Hidden is a ceiling: a tool the workspace hides stays hidden everywhere, a tool a World hides stays hidden there for every user, and a tool a group hides stays hidden in its sessions for every member. A turned-off integration denies every call.

A group's deny hides the tool in the group's sessions, and no user override shows it again. A group's allow or ask also replaces the user's own override there.