Skip to main content

Internal Users page

The Internal Users page lists every internal user the gateway knows about and is where you invite new users, change their roles, budgets and model access, reset their password or two-factor sign-in, and delete them. It lives at /ui/users and sits under ACCESS CONTROL in the left nav as Internal Users. The nav item shows for the session roles Admin (proxy_admin) and Admin Viewer (the view-only proxy_admin_viewer), and for organization admins (the session role Org Admin, or a user who holds org_admin in at least one organization). For an organization admin the item is also hidden when a proxy admin has set the enabled_ui_pages_internal_users UI setting and left users out of it. The page itself has no extra guard, so a user who types the URL still loads it, and the gateway decides which users that caller may list.

Opening a user puts its ID in the URL as /ui/users?user=<user_id>, so you can bookmark or share a user detail view. The browser back button returns you to the list.

A real-world scenario​

A new engineer joins the data team. The admin invites them with the Internal User role and the data team, so the engineer can sign in, see the team's models in the Playground and create their own keys, but not change gateway settings.

Steps​

  1. Open Internal Users under Access Control, or go to /ui/users, and click + Invite User.

  2. Type the User Email, pick Internal User under Global Proxy Role, pick the Team, keep Send invitation email checked, and click Invite User. The same with the API:

    curl -X POST http://localhost:4000/user/new \
    -H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \
    -d '{"user_email": "new.engineer@example.com", "user_role": "internal_user", "teams": ["team-data"]}'
  3. Copy the invitation link from the dialog if email is not configured, and send it to the engineer.

Expected result​

The user is listed with their role and team, and the invitation link lets them set a password and sign in.

Page toolbar and tabs​

The buttons above the table show only for a proxy admin (session role Admin). While the user list loads for the first time, three grey placeholders stand in for them.

ControlTypeWhat it does
+ Invite UserButtonOpens the Invite User dialog.
+ Bulk Invite UsersButtonOpens the Bulk Invite Users dialog for a CSV upload.
Select UsersToggle buttonTurns on selection mode and adds a checkbox column to the table. The label changes to Cancel Selection, and clicking it again clears the selection and hides the checkboxes.
Bulk Edit (N selected)ButtonShown only in selection mode. Opens the Bulk Edit dialog for the checked users. Disabled until at least one user is checked.
Delete Selected (N)ButtonShown only in selection mode. Opens the Delete N Users? dialog for the checked users. Disabled until at least one user is checked.
UsersTabThe user table. Selected by default.
Default User SettingsTabThe defaults applied to every new internal user.

For an organization admin the page shows the user table on its own, with no buttons and no tabs.

Users tab​

The table is paginated, sorted and filtered on the server. It opens sorted by Created At, newest first, with 25 rows per page. Changing the search, a filter or the sort returns you to page one and clears any checked rows. Moving to another page also clears checked rows.

Search and filters​

ControlTypeWhat it does
SearchText boxPlaceholder "Search by email or ID…". Matches the user's email or user ID on the server.
ColumnsMenuShows or hides table columns.
FiltersButtonOpens the Filters drawer ("Narrow down your users"). A count badge shows how many filters are active.
Filter chipsChipsEach active filter shows as a chip with its label and value. The x on a chip removes that filter, and Clear all removes every filter.

The Filters drawer holds four fields. Nothing changes until you click Apply Filters. Reset clears the drawer and every active filter.

FilterTypeWhat it does
User IDText boxPlaceholder "Enter user ID…". Shows only the user with this exact ID.
SSO IDText boxPlaceholder "Enter SSO ID…". Shows users whose ID in the single sign-on provider matches.
RoleSearchable dropdownPlaceholder "Select a role…". Lists the four global roles the gateway offers, by their labels.
TeamSearchable dropdownPlaceholder "Select a team…". Lists the teams loaded for your session, by alias or ID.

Columns​

ColumnMeaning
CheckboxShown only in selection mode. Checks a row for bulk edit.
User IDThe user's ID. Click it to open the user detail view. Sortable.
EmailThe user's email, or "-" when none is set. Sortable.
StatusA status badge, described below.
Global Proxy RoleThe label of the user's global role, such as "Internal User (View Only)". Sortable.
Custom RoleThe name of the custom role assigned to the user, or "-". Shown only when the custom role list loaded, which needs the session role Admin and an Enterprise license.
User AliasThe display alias, or "-".
Spend (USD)Total spend across the user's keys, with two decimals. Sortable.
Budget (USD)The user's max budget, or "Unlimited" when none is set.
SSO IDThe user's ID in the single sign-on provider, or "-". The info icon explains that the value is null when the user does not use SSO.
Virtual KeysA badge with the number of keys the user owns, such as "3 Keys", or "No Keys".
Created AtThe date the user was created. Sortable.
Updated AtThe date the user was last changed.
ActionsThe row menu, described below.
BadgeMeaning
ActiveThe user can sign in and their keys work.
InactiveThe user was deactivated through SCIM by your external identity provider. The tooltip says the user's virtual keys are blocked. Reactivate the user in the identity provider.

Row menu​

The menu at the end of each row is shown to everyone who can see the table.

ItemWhat it does
Edit userOpens the user detail view on the Details tab with the edit form already open.
Reset passwordCreates a new invitation for the user and opens the Reset Password Link dialog. A "Generating password reset link..." toast shows first.
Copy user IDCopies the user ID and shows "User ID copied".
Delete userOpens the Delete User? confirmation.

The Delete User? dialog shows the user's email, user ID, global proxy role and total spend, and warns "Are you sure you want to delete this user? This action cannot be undone." Confirming deletes the user. The gateway also deletes every key the user owns and removes the user from the member list of each of their teams. A deleted user cannot be restored, so you have to invite the person again and create new keys.

Delete Selected dialog​

Delete Selected (N) opens the Delete N Users? dialog. It lists every checked user by email and user ID, warns that the users, every key they own and their team memberships are removed in one request, and asks you to type delete before the Delete button becomes active. Confirming sends one POST /management/v1/users/bulk_delete request with all the checked user IDs. The gateway reports each user on its own, so a toast says how many users were deleted and a separate error toast names each user it refused, for example one outside the organizations you administer. The list reloads and selection mode closes.

For example, when two contractors leave at the end of a project, switch on Select Users, check both rows, click Delete Selected (2), type delete and confirm. The same from the command line:

curl -X POST "$GATEWAY_URL/management/v1/users/bulk_delete" \
-H "Authorization: Bearer $SPANWAY_MASTER_KEY" \
-H "Content-Type: application/json" \
-d '{"user_ids": ["contractor-one", "contractor-two"]}'

The response holds one entry per requested user with success, the teams the user was removed from and, for refused rows, an error.

Invite User dialog​

+ Invite User opens the Invite User dialog with the subtitle "Create a User who can own keys". An Email invitations notice explains that new users get an email only when an email integration (SMTP, Resend or SendGrid) is configured, and links to the email setup guide.

FieldTypeWhat it does
User EmailText boxThe new user's email. The form does not mark it required.
Global Proxy RoleDropdownThe user's role across the whole gateway. Each option shows its label and a short description. Defaults to Internal User (View Only). The help icon notes that this role is independent of team and organization roles.
TeamDropdownOptional. The user is added to the selected team with the team role user.
OrganizationMulti-selectOptional. Placeholder "Select Organization". The user is added to every selected organization. Options show the organization name and ID.
MetadataText areaOptional. Placeholder "Enter metadata as JSON".
Send invitation emailCheckboxChecked by default. Asks the gateway to email the invitation when email is configured.
Budget and Rate LimitsCollapsible sectionClosed by default. Holds the budget and limit fields below. Empty fields are left out of the request, so the gateway's defaults apply.
Max Budget (USD)NumberInside Budget and Rate Limits. Spend across every key the user owns. Empty means no budget.
Reset BudgetDropdownInside Budget and Rate Limits. n/a, hourly, daily, weekly or monthly.
TPM LimitNumberInside Budget and Rate Limits. Tokens per minute across every key the user owns.
RPM LimitNumberInside Budget and Rate Limits. Requests per minute across every key the user owns.
Max Parallel RequestsNumberInside Budget and Rate Limits. Requests in flight at once across the user's keys. Requests above the cap get a 429.
Personal Key CreationCollapsible sectionClosed by default. Holds the Create a personal key now checkbox and the Models field.
Create a personal key nowCheckboxInside Personal Key Creation. Off by default. When on, the gateway also creates a virtual key for the user with the limits above, and the key is shown once in the Invitation Link dialog.
ModelsMulti-selectInside Personal Key Creation. The models the user may use outside any team. Options are All Proxy Models, No Default Models and every model you can see. Values you pick are sent only while the section is open.

When you click Invite User, a "Making API Call" toast shows and the gateway creates the user. If you left Models empty or closed the section, and the role is not Admin (All Permissions), the user is created with No Default Models, so they can only use models that a team grants them. This also overrides Default Models on the Default User Settings tab. On success an "API user Created" toast shows, the form resets and the Invitation Link dialog opens on top of the still open Invite User dialog. Close both when you are done. On failure the error from the gateway shows as a toast and your input stays.

The same dialog shows after an invite, after Reset password in the row menu, and after Reset Password on the detail view. It is titled Invitation Link after an invite and Reset Password Link for a reset.

ElementWhat it does
User IDThe user the link is for.
Invitation link or Reset password linkA read-only link. For an invite it points to /ui/onboarding?invitation_id=<id> under the gateway URL. A reset link adds &action=reset_password.
CopyCopies the link so you can send it to the user.
Link statusShows "Pending, expires" with a date, "Accepted" with a date, or "Expired" with a date, or "Checking link status" while it loads. The gateway sets new invitations to expire after 7 days.
Generate new linkRevokes the current link and creates a new one. The toast says "New link generated, the previous link no longer works". If the old link was revoked but a new one could not be made, a warning says so and the dialog closes.
Revoke linkRevokes the link at once, with no confirmation, shows "Link revoked" and closes the dialog. A revoked link stops working and cannot be restored, so use Generate new link or Reset password to give the user a new one.

The status line and both buttons show only to a proxy admin who is not view-only. When single sign-on is enabled on the gateway, an invite does not create a stored invitation. The link then points to the Admin UI sign-in page under /ui, the user signs in through SSO, and the status and buttons are not shown.

Bulk Invite Users dialog​

+ Bulk Invite Users opens the Bulk Invite Users dialog, which walks through three steps.

Step 1, download and fill the template​

The first step lists the steps to follow and the template columns. Rows marked required must be filled in.

ColumnRequiredWhat it holds
user_emailYesThe user's email address.
user_roleYesOne of proxy_admin, proxy_admin_viewer, internal_user or internal_user_viewer.
teamsNoComma separated team IDs, such as team-1,team-2.
max_budgetNoThe maximum budget as a number, such as 100.
budget_durationNoHow often the budget resets, such as 30d or 1mo.
modelsNoComma separated model names the user may call.

The step also shows a Download CSV Template button, which downloads bulk_invite_users_template.csv with the column names in the first row and one example row to replace.

Step 2, upload your CSV​

Drag a file onto the drop area or use Browse files. Only .csv files are accepted, and the file must be smaller than 5 MB. Once a file is chosen, its name, size and a Remove button show in place of the drop area.

The dialog checks the file before it shows any rows.

ProblemMessage
Not a CSV"Invalid file type ... Please upload a CSV file (.csv extension)."
Too large"File is too large ... Please upload a CSV file smaller than 5MB."
Empty file"The CSV file appears to be empty. Please upload a file with data."
Headers only"The CSV file only contains headers but no user data."
No headers"The CSV file doesn't contain any column headers."
Missing required columns"Your CSV is missing these required columns" followed by the names.

Step 3, review and create users​

The step is titled Review and create users. A User Preview badge shows how many rows are valid out of the total, and a table shows five rows per page with Row, Email, Role, Teams, Budget and Status. Previous and Next page through the rows.

Each row is checked on its own. A row is marked Invalid with the reason when the email is missing or has no @ and domain, when the role is missing or not one of the four allowed values, when max_budget is not a number greater than 0, when budget_duration does not look like 30d, 2w, 6h or 1mo, or when a team ID in teams is not one of your teams. When some rows have errors, a red box says how many and suggests fixing the CSV and uploading it again.

ControlWhat it does
BackClears the parsed rows and returns to step 1.
Create N UsersSends every valid row in one POST /management/v1/users/bulk request. The count is the number of valid rows, and the button is disabled when there are none. It reads "Creating..." while it runs.

Only valid rows are sent to the gateway. Rows marked Invalid are skipped and keep their reason, so fix them in the CSV and upload it again to invite those users. The gateway checks the rows together, so a duplicate email or an unknown team fails only that row and the other rows are still created. If the whole request is refused, for example because it would exceed the license seat limit, every valid row shows Failed with the gateway's message and nothing is created.

After the run the title changes to User Creation Results and a Creation Summary shows how many users succeeded and failed. Each successful row shows Success and its invitation link with a Copy button. Invitation links are built from the gateway's base URL, so they include the path prefix when the gateway is served under one. A failed row shows Failed and the error. If a user was created but the invitation could not be made, the row says so.

ControlWhat it does
Start New Bulk ImportClears the results and returns to step 1.
Include virtual keys in the fileCheckbox, off by default. Shown only when the gateway returned a key for at least one user.
Download ResultsDownloads bulk_users_results.csv with each user's email, role, status, invitation link and error. With the checkbox on, the button reads Download Results With Keys and the file also has a key column.

The gateway creates a virtual key for each new user by default. With the checkbox off, the note reads "Keys are left out by default. Users can create their own keys after they accept the invitation." With it on, the note warns that the file holds live virtual keys in plain text. In that case treat the file as a secret, send each key over a secure channel, and delete the file when you are done.

Bulk Edit dialog​

The dialog title is Bulk Edit N User(s), or Bulk Edit All Users when the all users box is checked.

ControlTypeWhat it does
Update ALL users in the systemCheckboxShown to admins. Applies the change to every user on the gateway, not only the checked ones. A warning appears when checked, and the selected users table is hidden.
Selected Users tableTableLists the checked users with User ID, Email, Current Role and Budget.
Add selected users to teamsCheckboxIn the Team Management card. Shows the team fields below.
Select Teams:Multi-selectPlaceholder "Select teams to add users to". Every user is added to each selected team with the team role user.
Team Budget (Optional):NumberPlaceholder "Max budget per user in team". Leave it empty for no per-user limit inside the team.
User AliasText boxShown, but the current build does not send it, so a bulk edit never changes aliases.
Global Proxy RoleDropdownThe role to set on every user. When spanway_settings.max_internal_user_budget or internal_user_budget_duration is set, choosing Internal User without a Max Budget also resets every selected user's budget and reset period to those defaults.
Personal ModelsMulti-selectThe models to set. Only an admin can change this field.
Max Budget (USD)NumberThe budget to set. Unlimited Budget is checked by default, which leaves the budget untouched. Uncheck it to type a value, and the form then requires one.
Reset BudgetDropdownHow often the budget resets, from n/a, hourly, daily, weekly or monthly.
MetadataText areaJSON to set as metadata.

Only fields you fill in are sent, and the dialog refuses to save with "Please modify at least one field or select teams to add users to" when nothing is set. Save Changes applies the change, shows a summary toast and closes the dialog. If some teams fail, a warning says how many. Cancel closes without saving. Bulk edit cannot change email, custom role, rate limits, the parallel request cap, policies, per-model budgets or MCP permissions. The bulk update overwrites the chosen fields on every user and there is no undo.

User detail view​

Click a user ID or Edit user to open the detail view. Back to Users returns to the list. The header shows the user's email (or "User") and user ID with a copy button.

ControlShown toWhat it does
Reset PasswordSession roles Admin and Internal UserCreates a new invitation and opens the Reset Password Link dialog.
Reset two-factorSession role AdminOpens the Reset two-factor sign-in? confirmation.
Delete UserSession roles Admin and Internal UserOpens the same Delete User? confirmation as the row menu. On success you return to the list.

Reset two-factor removes the user's authenticator setup and recovery codes and signs them out of every Admin UI session. If two-factor sign-in is required for them, they set it up again at their next sign-in. The confirm button reads "Resetting..." while it runs. The old authenticator setup cannot be restored.

Overview tab​

CardWhat it shows
SpendTotal spend and "of" the max budget, or "of Unlimited".
TeamsA Team Name table of the user's teams. Each name links to the team. Lists show 20 teams at first, with +N more and Show Less to expand and collapse. Shows "No teams" when empty.
Personal ModelsThe user's personal models, or "All proxy models" when the list is empty.

A proxy admin also gets Add Team and a remove button on each team row.

ControlWhat it does
Add TeamOpens Add User to Team. Pick a Team (placeholder "Select a team", only teams the user is not in) and a Member Role, either user ("Can view team info, but not manage it") or admin ("Can create team keys, add members, and manage settings"). Add to Team is disabled until a team is picked.
Remove (trash icon)Opens Remove from Team. The dialog warns that removing the user also deletes any keys the user created for this team, and that this cannot be undone.

Details tab​

The User Settings card shows User ID, Email, User Alias, Global Proxy Role (the raw role value, such as internal_user), Custom Role (when custom roles loaded, "Not Set" when none), Created, Last Updated, Personal Models, Max Budget, Budget Reset, Metadata as JSON and MCP Permissions.

Edit Settings shows for the session roles Admin and Internal User and opens the edit form.

FieldTypeWhat it does
User IDText boxRead-only.
EmailText boxThe user's email.
User AliasText boxA display alias.
Global Proxy RoleDropdownThe user's role across the gateway, independent of team and organization roles.
Custom RoleDropdownShown when custom roles loaded. Options are None (base role only) and every custom role. The help text says it grants or denies permissions on top of the global role, that denied permissions always win, and that only a proxy admin can change it. Disabled for everyone else.
Personal ModelsMulti-selectThe models the user may use outside team scope. All Proxy Models grants every model on the gateway. Disabled unless you are an admin.
Max Budget (USD)NumberWith an Unlimited Budget checkbox. Unchecked, a value is required ("Please enter a budget or select Unlimited Budget"). Checked, the field is disabled and the budget is cleared.
Reset BudgetDropdownn/a, hourly, daily, weekly or monthly.
TPM LimitNumberPlaceholder "Unlimited". Applies across every key the user owns, and team and key limits still cap it. Must be a whole number of 0 or more, or empty for unlimited.
RPM LimitNumberSame rules as TPM Limit.
Max Parallel RequestsNumberSame rules as TPM Limit. How many requests the user's keys may have in flight at once. Requests above the cap get a 429.
PoliciesMulti-selectShown to admins. The policies applied to every request made with the user's keys, on top of team and key policies. Pick existing policies or type a name. Sent only when the list changed.
Per-Model BudgetsListCaps the user's spend on single models, each with its own window. Add Model Budget adds a row with a model, a "Max spend ($)" amount and a period from Hourly, Daily, Weekly, Monthly or Calendar month. Existing rows show the current window spend. Without an Enterprise license every control here is disabled with "Enterprise feature - Upgrade to set per-model budgets".
MetadataText areaJSON. If the text is not valid JSON, Save Changes does nothing and no message shows, so check the JSON.
MCP Servers / Access GroupsSelectorShown to admins. Caps which MCP servers, access groups and toolsets the user may reach. Every key the user holds is limited to this set.
MCP tool permissionsSelectorShown to admins under the MCP selector. Limits the tools allowed on each chosen server.

Save Changes sends the changes, then applies a custom role change if you made one, and shows "User updated successfully". Cancel closes the form.

Savings and Auto-router usage tabs​

Savings shows what this user saved across API keys and JWT authenticated requests. It shows to an admin, and to any user looking at their own record. Auto-router usage shows how the auto-router routed this user's traffic and shows only to an admin.

Default User Settings tab​

The Default User Settings card says the values are applied to every new internal user created through SSO or the user management APIs, and that existing users are not changed. The Invite User dialog on this page sends its own model choice, No Default Models when you pick none, so Default Models does not apply to people you invite here. It shows Default Role, Max Budget (USD), Reset Budget, Default Models and Default Teams, with "Not set" or "None" for empty values. Edit Settings opens the form.

FieldTypeWhat it does
Default RoleDropdownThe role new users get. Offers only Internal User and Internal User (View Only). Placeholder "Not set".
Max Budget (USD)NumberThe default budget. Must be a number of 0 or more.
Reset BudgetDropdownNo reset, hourly, daily, weekly or monthly.
Default ModelsModel pickerThe models new users can access, including the special all models and no default models options.
Default TeamsListNew users are added to each listed team. Only teams that already exist can be picked. Add Team adds a row, and Remove deletes it.
TeamSearchable dropdownPlaceholder "Search a team". Required in each row ("Select a team"), and a team can be listed only once ("This team is already listed").
Max Budget in Team (USD)NumberOptional. Placeholder "Optional".
Team RoleDropdownUser or Admin.

Save Changes is disabled until you change something and reads "Saving..." while it runs. On success "Default user settings updated successfully" shows. Cancel throws away your edits. The defaults affect only users created afterwards.

Empty, error and disabled states​

SituationWhat you seeWhat to do
No user matches"No users found" and "Try adjusting your search or filters."Clear the search and filters.
Table loading"Loading users…"Wait for the list.
User detail loading or missing"Loading user data..." or "User not found", with Back to UsersCheck the user ID in the URL. A "Failed to fetch user data" toast means the request failed.
Invite or edit failsA toast with the gateway's error, such as "Failed to update user"Fix the input, or check that your role can make the change.
Delete fails"Failed to delete user"Check your role. An organization admin can only delete users whose organizations are all ones they administer.
Link status fails to load"Could not load link status" and the errorReload the dialog.
Default settings fail to load"Could not load the default user settings."Sign in as a proxy admin and check that the gateway is reachable.
Bulk Edit disabledThe button is greyed outCheck at least one user.
Delete Selected disabledThe button is greyed outCheck at least one user. In the dialog, type delete to enable Delete.
Some bulk deletes refused"Deleted N users" plus an error toast per refused userThe refused users stay in the list. An organization admin can only delete users whose organizations are all ones they administer.
Create N Users disabledThe button is greyed outUpload a file with at least one valid row.
Custom Role disabledThe dropdown is greyed outOnly a proxy admin can change it.
Personal Models disabledThe picker is greyed outOnly an admin can change it.
Per-model budget controls disabled"Enterprise feature - Upgrade to set per-model budgets"Add an Enterprise license.

Differences by role and license​

Role or settingEffect on this page
Proxy admin (session role Admin)Sees every user, the invite, bulk invite, select, bulk edit and delete selected buttons, the Default User Settings tab, Reset two-factor, Add Team and team removal, MCP permissions, and the Auto-router usage tab.
View-only admin (proxy_admin_viewer)Gets session role Admin Viewer and the view-only banner. Like an organization admin it sees the table without tabs or toolbar buttons, and the detail view's Reset Password, Reset two-factor, Delete User and Edit Settings buttons stay hidden. The row menu still shows, but the gateway refuses the writes for this role, so those actions fail with an error.
Organization adminSees the table without tabs or toolbar buttons. Still gets the full row menu, and Edit user opens the edit form, but saving changes to another user is refused with User does not have permission to update this user. Only PROXY_ADMIN can update other users., so ask a proxy admin for those edits. The detail view's own Reset Password, Delete User and Edit Settings buttons stay hidden, because those check for the session roles Admin and Internal User. The gateway limits deletes to users whose organizations the admin controls.
Internal User and Internal ViewerDo not see the page in the nav.
enabled_ui_pages_internal_usersWhen set without users, organization admins do not see the nav item.
Enterprise licenseNeeded for the Custom Role column and field (the gateway also requires the custom_roles license feature on the role routes) and for per-model budgets. Organization membership detection in the nav also needs a license, because the organization list only loads with one.

Errors​

What you seeWhat it meansFix
No email arrivesNo email integration is configured.Copy the invitation link from the dialog, or set up email.
The user can sign in but sees no modelsThey were created with No Default Models and no team.Add them to a team, or give them models under Personal Key Creation.
The page is missing from the navOnly Admin and Admin Viewer roles see it.Sign in as an admin.