Skip to main content

Access Groups page

An access group is a named bundle of models, MCP servers and agents. Instead of listing every resource on each key or team, you attach the group to the key or team and it gets everything in the bundle. The Access Groups page is where you create, edit and delete groups and see which keys and teams use them. It lives at /ui/access-groups and sits under ACCESS CONTROL in the left nav as Access Groups. The nav item shows only for the session roles Admin (proxy_admin) and Admin Viewer (proxy_admin_viewer). The group list also loads only for those session roles. The page has no license gate.

Keys and teams are attached to a group from their own settings, not from this page. This page shows those attachments read-only.

A real-world scenario​

Ten teams need the same set of support models, MCP servers and agents. Instead of listing them on every team, the admin creates a support-tools access group and attaches it to the teams. When a new model joins the set, the admin adds it to the group once.

Steps​

  1. Open Access Groups under Access Control, or go to /ui/access-groups, and click Create Access Group.

  2. Name the group, pick its models, MCP servers and agents, and click Create Group. The API call is in access groups.

  3. Attach the group to a team or key, then open the group to see who uses it.

    curl http://localhost:4000/v1/access_group/ag-3f9c -H "Authorization: Bearer $SPANWAY_API_KEY"

Expected result​

"Access group created successfully" shows, and keys of the attached teams can use everything in the group.

Group list​

The header reads Access Groups with the description "Manage resource permissions for your organization". Create Access Group shows in the header for a proxy admin (session role Admin).

ControlTypeWhat it does
SearchText boxPlaceholder "Search groups by name, ID, or description...". Filters the loaded list in the browser. The x button clears it.

The table sorts and pages in the browser, with 10, 25 or 50 rows per page.

ColumnMeaning
IDThe group ID. Click it to open the group.
NameThe group name. Sortable.
ResourcesThree counts, for models, MCP servers and agents. Hover a count to see what it counts.
CreatedThe creation date. Sortable.
UpdatedThe date of the last change.
ActionsA row menu with Delete access group, shown to a proxy admin.

Delete access group opens Delete Access Group with the group's ID, name and description (a dash when empty) and the warning "Are you sure you want to delete this access group? This action cannot be undone." Confirming deletes the group. The gateway also removes the group from every team, key and agent it was attached to, so they lose the access the group gave them right away, and writes an audit row for each one. A deleted group cannot be restored. Only a proxy admin can delete a group, and the gateway enforces that.

Create Access Group dialog​

The dialog has four tabs. The group name is the only required field, and if it is missing the dialog switches back to General Info to show the error.

TabFieldWhat it does
General InfoGroup NameRequired ("Please enter the access group name"). Placeholder "e.g. Engineering Team".
General InfoDescriptionOptional. Placeholder "Describe the purpose of this access group...".
ModelsAllowed ModelsThe models in the group, picked from every model on the gateway. The help line says that every key in an attached team, and every key attached directly, can call them, and that removing a model takes it away from those keys on their next request.
MCP ServersAllowed MCP ServersPlaceholder "Select MCP servers". The MCP servers whose tools those keys can use. Removing one takes its tools away on the next request.
AgentsAllowed AgentsPlaceholder "Select agents". The agents those keys can call. Removing one takes it away on the next request. The help line also warns that names that match nothing are stored as typed and grant nothing.

The dialog header explains in one line that a group is one bundle that teams and keys get together, with a link to the access groups docs.

Create Group reads "Creating..." while it runs. On success "Access group created successfully" shows and the dialog closes and resets. On failure the gateway's error shows as a toast. Cancel closes and resets the form.

Group detail view​

Click a group ID to open it. The back arrow returns to the list. The header shows the group name and ID with a copy button, and, for a proxy admin, an Edit Access Group button.

Card or tabWhat it shows
Group DetailsThe description (a dash when empty), when it was created and by whom, and when it was last updated and by whom.
Attached KeysThe keys attached to the group, as links to each key, with a count. Five show at first, and View All (N) and Show Less expand and collapse the list. "No keys attached" when there are none.
Attached TeamsThe same for teams, with links to each team. "No teams attached" when there are none.
Models tabThe models in the group, with a count.
MCP Servers tabThe MCP servers in the group, with a count. Hover a name to see its ID.
Agents tabThe agents in the group, with a count.

Each tab says "No models assigned to this group", "No MCP servers assigned to this group" or "No agents assigned to this group" when it is empty.

Edit Access Group dialog​

Edit Access Group opens the same four tabs as the create dialog, filled with the group's current values. The group name is required ("Please enter the access group name").

The dialog sends the models, MCP servers or agents only for the tabs you opened, so a tab you never clicked keeps its stored value. Save Changes saves the group and shows "Access group updated successfully". Cancel closes without saving. A change applies to every key and team attached to the group.

Empty, error and disabled states​

SituationWhat you seeWhat to do
No groups"No access groups yet" and "Create an access group to manage resource permissions for your organization."Create one.
Search finds nothing"No matching access groups" and "Try a different search term."Change the search.
Loading"Loading access groups…", or a spinner on the detail viewWait.
Group not found"Access group not found"Go back and pick another group.
Save or delete failsThe gateway's error in a toastCheck your role and the values.

Differences by role and license​

Role or settingEffect on this page
Proxy admin (session role Admin)Sees the list, Create Access Group, the delete menu and Edit Access Group.
View-only admin (proxy_admin_viewer)Gets session role Admin Viewer and sees the list and group details. Create Access Group, Edit Access Group and the delete menu are hidden. The gateway lets this role read groups and refuses changes.
Every other roleDoes not see the page in the nav, and the group list does not load for them. Edit Access Group is hidden as well.
LicenseNo license is needed for this page.

Errors​

What you seeWhat it meansFix
No Create Access Group buttonOnly proxy admins manage groups.Sign in as a proxy admin.
Access group '<name>' already exists in a toastAnother group has that name.Pick another name.
Unknown team ids: <ids> in a toastA team attached to the group no longer exists.Remove that team. Only team ids are checked, a model, MCP server or agent that does not exist is saved as it is and grants nothing.
A toast naming access_group_nameThe name is blank.Type a name.
A key of the team is refused a model in the groupThe key has its own narrower model list.Widen the key's models.

Logs​

The page writes no log lines of its own. A failed delete logs delete_access_group failed, described in access groups.