Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Control which tools each group can use in Agent Gateway

Create groups, grant them all tools, an allow-list or a deny-list on each connection, check what a user gets and follow recipes for common setups.

This guide is for the admin who decides which tools people’s AI clients can use through Agent Gateway. By the end, you’ll have groups for your teams, a grant on each connection that says which tools each group gets, and a way to check what any user can use.

  • Agent Gateway is enabled for your environment, and you’ve added at least one connection. See the Agent Gateway quickstart.
  • The people you want to group are Gateway users. See Add users.

Three things decide which tools a person sees in their AI client:

PieceWhat it isWhere you set it
GroupA set of Gateway users, such as Sales or ContractorsGroups
GrantGives one group access to one connection, with all of its tools, only the tools you allow or all tools except the ones you blockThe connection’s Policies tab
Preview AccessShows the tools one user can use on a connection todayThe connection’s Policies tab

A person belongs to the built-in Everyone group, plus every directory and manual group they’re a member of. On each connection, they get the tools from the grants of all their groups combined, minus any tool one of their groups blocks.

  1. In Agent Gateway, open Groups.

    Gateway groups page listing the built-in Everyone group and two manual groups, Contractors and Sales, with their source and member count

    Each group has a source:

    SourceMembersEditable
    Built-inThe Everyone group: every signed-in userNo
    DirectoryA group synced from your identity provider through SCIMNo: change it in your identity provider
    ManualThe users you addYes
  2. Select Create Manual Group, enter a Name, such as Sales, and an optional Description, then select Create Group.

    Create manual group dialog with the name Sales and the description Account executives and sales engineers

  3. To add people, open the group’s … menu and select Edit members. Search for a user by email or name and select them. They’re added straight away. To remove someone, select the delete icon next to their name.

    Sales group drawer with a search field for adding a member and one current member, alex@example.com

To delete a manual group, open its … menu and select Delete. This removes its members, its grants and any tool settings tied to them, and can’t be undone.

  1. In Agent Gateway, open Connections, select the connection and open its Policies tab. The table lists each group with a grant and its access.

    Policies tab of a GitHub connection with two grants: Everyone with All tools and Contractors with a deny-list, plus Preview Access and Add Group buttons

  2. Select Add Group and choose the group.

  3. Choose its Access:

    AccessThe group can useUse it to
    All toolsEvery tool on the connectionGive a team the whole app
    Only specific toolsOnly the tools you select (an allow-list)Give the least access a team needs
    All tools except…Every tool except the ones you select (a deny-list)Keep a few risky tools away from a group, even if another of its groups allows them
  4. For an allow-list or a deny-list, select the tools. The count above the list shows how many you’ve selected.

    Edit Group Access drawer for the Sales group with Only specific tools selected and four Gmail read tools checked, 4 of 38 selected

    Add Group Access drawer for the Contractors group with All tools except selected and githubpat_repo_delete checked under Blocked tools

  5. Select Add Grant.

To change a grant, open its … menu, select Edit, change the access or the tools and select Save Changes. To remove it, select Revoke and confirm. Revoking removes the grant and its tool selection.

Revoke Contractors confirmation: This removes the grant and any per-tool refinements tied to it, with Cancel and Revoke buttons

  • A connection with no grants is open to every user. Once a connection has a grant, only the groups with a grant can use it.
  • New connections start with Everyone: All tools. A connection you add after enabling the Gateway gets that grant, so every user can use it until you edit or revoke it.
  • A person gets the tools from all their groups’ grants together. If Everyone has All tools, each user has every tool their groups don’t block. An allow-list for another group doesn’t take tools away from its members.
  • A blocked tool stays blocked. If any of a person’s groups has a deny-list that blocks a tool, they can’t use it, even if Everyone or another group allows it.
  • A tool missing from an allow-list isn’t blocked. Another of the person’s groups can still grant it.

On the connection’s Policies tab, select Preview Access and pick a user. You see the groups that contribute to their access and every tool they can use on this connection today.

Preview Access for priya@example.com on a GitHub connection: contributing groups Everyone and Contractors, and 112 permitted tools

A user with no permitted tools has no grant on this connection through any of their groups:

Preview Access for priya@example.com on a Gmail connection: contributing groups Everyone and Contractors, 0 permitted tools, and No tools permitted under the current policy set

After each change, check Preview Access for one person in each group the change affects.

For example, only the sales team should use Gmail.

  1. On the Gmail connection’s Policies tab, add a grant for Sales with All tools, or with Only specific tools for less.
  2. Revoke the Everyone grant.
  3. In Preview Access, check one member of Sales, who gets the tools, and one person outside it, who gets none.

Add the Sales grant before you revoke Everyone. If you revoke first, the connection has no grants and is open to every user again.

Keep contractors read-only on a shared app

Section titled “Keep contractors read-only on a shared app”

For example, everyone keeps full GitHub access, but contractors can only read.

  1. On the GitHub connection, keep Everyone: All tools.
  2. Add a grant for Contractors with All tools except… and select the tools that change something, such as githubpat_repo_delete, githubpat_issue_create and githubpat_pull_request_merge.
  3. In Preview Access, check a contractor. The tools you blocked are missing, and everything else is there.

An allow-list for Contractors wouldn’t work here: contractors are also in Everyone, which already grants every tool. Only a deny-list takes tools away.

For example, nobody should delete repositories through an AI client.

  1. On the connection’s Policies tab, open the Everyone grant’s … menu and select Edit.
  2. Choose All tools except…, select the tool, such as githubpat_repo_delete, and select Save Changes.

Every user loses the tool, whatever their other groups allow.

Roll out a new connection to a pilot group

Section titled “Roll out a new connection to a pilot group”

A new connection starts with Everyone: All tools, so every user sees its tools as soon as you add it.

  1. Right after you add the connection, add a grant for your pilot group, such as Pilot, then revoke the Everyone grant.
  2. When the pilot ends, add Everyone back with All tools, or with a deny-list for the tools you want to keep restricted.

See what each plan includes in Plans and limits.