Set Up a Gateway Connection
Workspace admins manage gateway connections, and admins and management keys with SSO access manage gateway users and rules. Other API keys cannot.1
Create a dedicated application in the identity provider
Use a new OIDC or SAML application, separate from the one used for Studio sign-in. Assignment to this application becomes the outer access gate.
2
Add the connection
Open Organization > Gateway users and add a connection. Enter the protocol settings, allowed email domains, allowed OAuth clients and the immutable user claim.
3
Map groups to gateways
Add a rule for each identity provider group, naming the gateways its members may use. Rules are the grant: a gateway shared with all projects is still reachable only through a rule.
4
Configure SCIM
Generate a SCIM token on the same page and configure the identity provider with the SCIM endpoint shown there. SCIM is optional, and it decides how quickly access ends. See Offboarding.
Immutable User Claim
Every connection needs a claim or SAML attribute that never changes for a person, such asoid in Entra ID. SSO and SCIM use it to resolve to one user. Email is never used for this.
If SCIM is configured, the SCIM externalId must carry the same value. When a login matches no provisioned user, it is denied.
Identity Provider Requirements
Microsoft Entra ID
Microsoft Entra ID
- Set the correlation claim to
oid, or for SAML to the object identifier attribute. - Change the SCIM
externalIdmapping toobjectId. Check this first: the default mapping is reported to usemailNickname, which will not match and denies login. - Limit the groups claim to groups assigned to the application. Beyond 200 groups in OIDC tokens or 150 in SAML, Entra omits the list, and the login is denied.
SAML
SAML
- Use a persistent NameID that is not an email address. Transient and email-shaped NameIDs are refused.
- Use a SAML entity ID unique to this connection.
- Sign in starts from the MCP client. IdP-initiated sign-in is not supported, and neither is SAML single logout.
Group IDs
Group IDs
Rules match the value the identity provider sends in the groups claim, and the SCIM group
externalId. Use an immutable group ID, and confirm the provider sends the same value in both.Sign In as an Employee
- Add the gateway to an MCP client that the connection allows, using the gateway URL with its ID.
- Approve the request in the browser, after signing in with single sign-on.
- When a tool needs an upstream account, open the connection link and approve it.
workspace hint, because keys are unique only within a workspace.
Offboarding
The maximum session age defaults to 24 hours and is set per connection. Refreshing cannot extend it.
Configuring SCIM is the customer’s responsibility. Without it, group changes apply only at the next sign-in.
After deactivation, tokens, upstream connections, consent and the analytics identity are removed in the background. Upstream tokens are revoked where the upstream supports it.
In-flight requests may finish. If invalidation fails, SCIM returns an error so the identity provider retries, and the longest access continues is the 10-minute access token lifetime plus one minute of clock leeway.
What Gateway Users Can Reach
Their tokens work only on gateway execution, and only for a gateway their rules grant and a client on the connection’s list. Each request also checks the workspace’s blocked and archived state, IP allowlist and SSO entitlement. A gateway user who matches a workspace member by email is shown as linked for access reviews. The link is an identity provider assertion, not proof of identity, and it grants nothing.Limits
- Replacing the identity provider tenant or connection creates new identities, and users must reconnect upstream accounts.
- Enterprise-managed (ID-JAG) upstream servers are not available to gateway users, and calls return a clear error.
- Traces use the gateway’s project when it is shared with exactly one. Otherwise they stay at workspace level.
- Gateway users appear in traces and on the Identities page as opaque IDs, without names or emails.