Skip to content
AI GatewayAI Gateway Manual

Automatic member registration at sign-in

How users become members when they sign in, who can become a member, granting seats and roles, refreshing names and emails, and how to block use.

This guide explains how users become organization members automatically the first time they sign in, and how to let registered users use the gateway or stop them from using it.

A user who signs in successfully with the organization’s auth provider (Google Workspace, Okta, or Keycloak) becomes an organization member on the spot. This applies to the web console. The Desktop Companion does not sign in separately; it uses a Gateway Key issued to an existing member. There is no separate invitation step.

An automatically registered member has no permissions. They appear in Organization → Members, but cannot see projects or use the Model Gateway or MCP Gateway. Signing in again does not change an existing member’s roles or active state.

With user provisioning (Okta, Keycloak), users assigned to the Okta application or granted a role of the Keycloak sign-in client become members before they ever sign in.

AI Gateway has no setting to turn automatic registration off, and none that filters by email domain or group. Anyone the auth provider lets sign in becomes a member the moment they sign in. Control who gets in with the auth provider’s own settings.

  • Okta: only users assigned to the application can sign in. If the application is assigned to “Everyone”, every user in that Okta organization becomes a member at their first sign-in. Assign the application only to the users or groups who will use AI Gateway.
  • Google Workspace: with the OAuth consent screen set to Internal, only accounts in that Workspace organization can sign in. Otherwise other Google accounts can sign in and become members too.
  • Keycloak: only users with a role of the AI Gateway sign-in client can sign in. If you put that role in the realm’s default roles or on a group every user belongs to, every user in that realm becomes a member at their first sign-in. Grant the role only to the users or groups who will use AI Gateway.

Members are told apart by their account at the auth provider. If you switch the organization’s auth provider to another provider (for example, from Okta to Google Workspace), the same person becomes a separate member the first time they sign in with the new provider.

  1. Grant a seat: in Organization → Members, grant the member a seat in the Seat column. When several members have no seat, use Grant a seat to every member without one (N). A member without a seat can still use the console as their roles allow, but every page shows a You don’t have a seat notice, and their calls to the Model Gateway and MCP Gateway are refused. PoC licenses do not count seats, so this step is not needed with them.
  2. Give a project role: in the project’s Access Control → Role assignments, give the member, or a team they belong to, the ai-user role. With this role they can create Gateway Keys in that project and call the Model Gateway and MCP Gateway. Organization and project administrators need this role too if they use the gateway themselves.

Only organization administrators can grant and release seats, and only they see the Seat column. Seats cannot exceed the number purchased in the license, and inactive members cannot be given a seat.

A user’s name and email are stored as they were at the first sign-in. If the name or email later changes at the auth provider, signing in again does not update them.

The only way to update them is user provisioning (Okta, Keycloak). Even without scheduled sync, clicking Run sync now once updates them to the name and email in the auth provider. Organizations that use Google Workspace, or organizations without user provisioning, keep showing the values from the first sign-in.

Combine the methods below as the situation requires. To stop one member right away, release their seat or revoke their project role. Revoking Gateway Keys and blocking sign-in at the auth provider still let the member create new keys.

MethodEffectNotes
Release the seat (Seat in Organization → Members)From the next request, the member’s Gateway Key calls (Model Gateway and MCP Gateway) are refused. The console stays open as their roles allow. Their roles and Gateway Keys stay, so granting a seat again lets them carry on as beforeNo effect with a PoC license, which does not count seats. The last seat held by an organization administrator cannot be released
Revoke the project role (Access Control → Role assignments in the project)Once the ai-user role is revoked, the member’s Gateway Key calls in that project are refused from the next request, and they cannot create new keys there. This works with a PoC license too. Their Gateway Keys stay, so giving the role back lets them carry on as beforeRoles belong to one project each, so revoke the role in every project the member uses. A role that comes from a team only goes away when the member leaves the team. Members of a team created by user provisioning (a team whose Source on the Teams page is the auth provider) cannot be changed in the console, so remove the member from the group at the auth provider. The change applies at the next sync, or at once with Okta SCIM provisioning
Revoke the member’s Gateway Keys (Project settings → Gateway Keys)A revoked key is deleted at once, and calls with it are refused from the next requestFind the member’s keys in the Owner column. Keys belong to one project each, so revoke them in every project where the member has keys. Revoking cannot be undone. Revoking alone does not stop the member: while they keep the ai-user role, they can create new keys from an open session (up to 12 hours after sign-in) or by signing in again. Use it to get rid of a leaked key, and combine it with releasing the seat or revoking the role to stop use
Block sign-in at the auth provider (Okta: suspend the user or unassign the application; Google Workspace: suspend the account; Keycloak: revoke the sign-in client role or turn off the user’s Enabled)New sign-ins are stopped by the auth providerOpen sessions (up to 12 hours after sign-in) and issued Gateway Keys keep working, and an open session can still create new keys. This includes suspending a user in Okta without user provisioning or with Okta SCIM provisioning. Combine it with releasing the seat, revoking the role, or user provisioning
Suspend the user in Okta, or turn off Enabled in Keycloak (with user provisioning on scheduled sync and Follow Okta user status or Follow Keycloak user status on)The next sync deactivates the member. Open sessions end, Gateway Key calls are refused, signing in shows “Your account is deactivated. Contact your administrator.”, and the seat is released. Roles and Gateway Keys stay, and lifting the suspension or turning Enabled back on activates the member again at the next syncNothing happens until the next sync runs. Activating the member again does not return the seat; grant it again. With Okta SCIM provisioning a suspension is not reflected, because Okta does not send it
Unassign the Okta application or deactivate the user in Okta, or revoke the Keycloak role or delete the user (with user provisioning)The next sync removes the member. With Okta SCIM provisioning the member is removed as soon as the change is made in Okta. Their roles, team memberships, Gateway Keys, MCP credentials and the MCP Toolsets they created are deleted and the seat is released. This cannot be undoneIf a scheduled sync run would remove more members than the removal threshold allows, it changes nothing and ends as Failed, and the member’s sessions and Gateway Keys keep working. Check for Succeeded in the run history, and release the seat or revoke the role first when access must stop right away. SCIM provisioning has no removal threshold. If the user is assigned or granted the role again they come back as a new member with no permissions

Even after a member is removed, a user who can still sign in at the auth provider becomes a member again at the next sign-in. Their old roles, team memberships, Gateway Keys and seat do not come back. To keep a removed user out for good, block their sign-in at the auth provider first.

The last active organization administrator is never deactivated or removed, whatever the method. With a license that counts seats, the last active organization administrator who holds a seat is protected the same way.