from line 1
11# Identity and access
22
3> Connect single sign-on, manage SCIM provisioning, and write the routing rules that place users into organizations.
3> Verify domains, connect single sign-on and SCIM, write the routing rules that place people in organizations, and look up what a sign-in error page means.
44
55> **Who this is for:** Tenant administrators who connect the deployment to their agency's identity provider and control which organization each person belongs to.
66
7Use this page to connect single sign-on, manage the SCIM provisioning token, write the routing rules that place users into organizations, preview how a specific person would be routed, and review people who haven't been placed yet.
7Identity and access are configured once here and shared by every organization in your tenant.
88
9Identity and access are configured once here and shared by every organization in your tenant. The page is laid out top to bottom in the order you'll usually work through it: connect single sign-on, optionally connect directory provisioning, then write routing rules, then use the preview and the waiting lists to confirm everyone is being placed where you expect.
9> [!NOTE]
10>
11> These cases are covered on other pages:
12>
13> * **Setting up a new tenant**: see [Tenant setup wizard](https://claude.com/docs/government/tenant-admin/setup-wizard.md)
14> * **Mapping directory groups to seat tiers and roles**: see [Group mappings](https://claude.com/docs/government/org-admin/provisioning.md)
1015
11## Status banners
12
13Three banners can appear at the top of the page:
14
15* **Still being provisioned** appears while Anthropic is finishing initial setup of your tenant. Sign-in is disabled for everyone until provisioning completes, but you can configure everything on this page in the meantime so that it takes effect as soon as the tenant goes live.
16* **No routing rules configured** appears when no routing rules exist. Until at least one rule is added, no new person can sign in.
17* **Last SCIM push** shows when your directory most recently pushed an update. It appears only after your directory has completed at least one sync.
18
1916## Domains
2017
21Claude for Government routes users to your tenant by the domain of their email address, so at least one domain must be registered before anyone can sign in. The **Domains** section lists every domain registered to your tenant, along with whether it is verified and whether it was registered by Anthropic or by you. Your tenant can have more than one domain. However many domains are registered here, your tenant has one set of [admin portals](https://claude.com/docs/government/tenant-admin/overview.md#tenants-and-organizations), and the [routing rules](#routing-rules) decide which organization each person joins.
18Claude for Government routes users to your tenant by the domain of their email address, so at least one domain must be verified before members can sign in. While Anthropic is finishing initial setup of your tenant, or if Anthropic has deactivated it, sign-in is disabled for everyone, and only Anthropic can change that. Once a tenant administrator can sign in, that setup is finished.
2219
20Your tenant can have more than one domain, and a verified domain can belong to only one tenant. However many domains are verified here, your tenant has one set of [admin portals](https://claude.com/docs/government/tenant-admin/overview.md#tenants-and-organizations), and the [routing rules](#routing-rules) decide which organization each person joins.
21
2322Domains that Anthropic registered on your behalf during onboarding are already verified. To add one yourself, enter the domain in the **Claim a domain** field and click **Claim**. You will be shown a DNS TXT record to publish on that domain; once the record is live, click **Verify now** and the domain becomes active.
2423
25Until at least one domain is verified, the Single sign-on section's Connect button and the SCIM provisioning section's **Generate token** button are both unavailable, and each section shows a banner explaining why. Existing tenant administrators can still sign in by email link during this time.
24> [!WARNING]
25>
26> Verify the domain of your own email address first, if your agency owns it. Once your tenant has a verified domain, you can't start sign-in or get the [emailed sign-in link](#emailed-sign-in-link) by entering an address on an unverified domain.
2627
28* **Verification delay.** DNS changes take time to propagate, so try again shortly if verification does not succeed on the first attempt.
29* **After verification.** Keep the DNS TXT record in place while you are using Claude for Government.
30* **Subdomains.** A subdomain is a separate domain, so verifying `example.gov` doesn't cover email addresses at `sub.example.gov`.
31* **Removal.** To withdraw an unverified claim, click **Withdraw** next to it. To remove a verified domain, contact Anthropic.
32
2733## Single sign-on
2834
29Every user signs in through your agency's identity provider (for example, Microsoft Entra, Okta, or ADFS). Your identity provider needs to support SAML 2.0 or OpenID Connect (OIDC).
35Members sign in through your agency's identity provider (for example, Microsoft Entra, Okta, or ADFS), which needs to support SAML 2.0 or OpenID Connect (OIDC). You need at least one [verified domain](#domains) before you can connect single sign-on.
3036
3137You register Claude for Government as an application in your identity provider, then enter your provider's connection details here. Once connected, sign-ins are redirected to your provider. A second sign-in from the same browser within a few minutes, such as connecting Claude Desktop right after signing in on the web, may not be redirected again.
3238
33> [!NOTE]
39Only one protocol is active at a time. Use the **OIDC** and **SAML** tabs to switch between the two forms; saving one replaces the other.
40
41> [!WARNING]
3442>
35> You need at least one verified domain before you can connect single sign-on. Until then, the Connect button is unavailable and a banner prompts you to verify a domain first. If single sign-on was already connected before your last domain was removed, the existing connection stays editable.
43> Saving a new single sign-on configuration takes effect immediately and applies to everyone, including you. After saving, select **Test sign-in** to check the connection with your own account while you stay signed in. If single sign-on fails, Primary Owners and tenant administrators can use the [emailed sign-in link](#emailed-sign-in-link).
3644
37The card header shows a **Connected (OIDC)**, **Connected (SAML)**, or **Not configured** badge so you can see the current state at a glance. Only one protocol is active at a time. Use the **OIDC** and **SAML** tabs to switch between the two forms; saving one replaces the other.
45### Register in your identity provider
3846
39### Registering in your identity provider
40
4147Copy the following values from the card into your identity provider when you create the application there:
4248
4349* **Redirect URI / ACS URL** is where your identity provider sends the user back after authentication. The same value is used whether you choose OIDC (where it's called the Redirect URI) or SAML (where it's called the Assertion Consumer Service URL).
4450* **SP Entity ID / Audience** is the unique identifier your identity provider uses to recognize this application. Providers label this field differently; it may appear as Identifier, Entity ID, or Audience URI.
4551
46For SAML, a **More values your IdP may ask for** expander below these fields lists the remaining details some providers request: the Name ID format, whether assertions and requests are signed, and the default RelayState.
52For SAML, **More values your IdP may ask for** lists the remaining details some providers request. After you save a SAML connection, an **SP metadata URL** appears alongside these values.
4753
48After you save a SAML connection, an **SP metadata URL** appears alongside these values. Most identity providers can import this address to fill in the other values automatically if you need to reconfigure.
54### Connect with OIDC
4955
50People start sign-in from Claude Desktop (**Sign in with your organization**) or from the web portal in a browser, and Claude for Government then sends them to your identity provider. Starting from the application's tile in your provider's app portal (such as Microsoft My Apps), or from a sign-in test in your provider's admin console, is not supported.
51
52### Connecting with OIDC
53
5456If your identity provider supports OpenID Connect, fill in the OIDC section:
5557
5658* **Client ID** is the application ID your identity provider assigned when you registered the app.
5759* **Client secret** is the secret your identity provider generated for that application. It is stored securely and never shown again after you save.
58* **Authorization URL**, **Token URL**, **Issuer**, and **JWKS URL** are your identity provider's OIDC endpoints. Most providers show these on the application's overview or endpoints page, and some providers publish all four together on an OpenID Connect discovery document.
60* **Authorization URL**, **Token URL**, **Issuer**, and **JWKS URL** are your identity provider's OIDC endpoints. Copy them exactly from your provider's OpenID Connect discovery document, whose address ends in `/.well-known/openid-configuration`. For Microsoft Entra, the Issuer ends in `/v2.0`.
5961
60### Connecting with SAML
62### Connect with SAML
6163
62If your identity provider uses SAML, fill in the SAML section instead:
64If your identity provider uses SAML, fill in the SAML section instead. Your provider must sign the SAML assertion, not only the response.
6365
64* **IdP metadata XML** is the federation metadata document for your identity provider. Download the XML file from your provider (in Microsoft Entra it's under Single sign-on → SAML → Federation Metadata XML; in ADFS it's under Endpoints) and paste the full document into the field. The metadata is read from what you paste; it is never fetched from a URL.
66* **IdP metadata XML** is the federation metadata document for your identity provider. Download the XML file from your provider and paste the full document into the field. The metadata is read from what you paste; it is never fetched from a URL. When your identity provider rotates its signing certificate, download the new metadata XML, paste it into the **IdP metadata XML** field, and click the **Update** button.
6567
6668Once SAML is active, the card shows the Entity ID and SSO URL extracted from your metadata so you can confirm the connection is pointing where you expect.
6769
6870### Attribute mapping (advanced)
6971
70Both the OIDC and SAML sections include an **Attribute mapping** panel that's collapsed by default. Open it if the email, first-name, or last-name fields arrive under different names than the defaults. Each field offers a short list of common names for your chosen protocol; you can pick one or type your own. For OIDC the defaults are the standard `email`, `given_name`, and `family_name` claims; for SAML the defaults cover the common attribute names most providers use. Leave a field blank to use its default.
72Open the **Attribute mapping** panel in the OIDC or SAML section if the email, first-name, or last-name fields arrive under different names than the defaults. For OIDC the defaults are the standard `email`, `given_name`, and `family_name` claims; for SAML the email default covers the common attribute names, and the name defaults are `firstName` and `lastName`.
7173
72> [!WARNING]
73>
74> Saving a new single sign-on configuration takes effect immediately and applies to everyone, including you. Before saving, confirm you can authenticate with the new provider in another browser window so that you don't lock yourself out.
74Claude for Government identifies a person at single sign-on from what your identity provider returns, not from the email address they type, so typing an alias doesn't create a second account. A separate identity in your identity provider that has its own email address gets its own account when your [routing rules](#routing-rules) place it.
7575
76### Where sign-in starts
77
78People start sign-in from a Claude app, such as Claude Desktop (**Sign in with your organization**), or from the web portal in a browser, and Claude for Government then sends them to your identity provider. Starting from the application's tile in your provider's app portal (such as Microsoft My Apps), or from a sign-in test in your provider's admin console, is not supported.
79
80### Emailed sign-in link
81
82There is no local break-glass account or stored password. Primary Owners and [tenant administrators](https://claude.com/docs/government/tenant-admin/admins.md) can sign in to the web portal without single sign-on, whether or not it is connected: they request a single-use link with **Email me a sign-in link** on the web portal's sign-in page.
83
84Until your tenant has a verified domain, only tenant administrators can get a link. Once it has one, a link is sent only to an active Primary Owner or tenant administrator whose address is exactly on one of your tenant's [verified domains](#domains). One person can get at most five links an hour. The page that follows reads the same whether or not a link is sent.
85
7686## SCIM provisioning
7787
7888<video controls preload="metadata" playsInline src="https://mintcdn.com/claude-ai/gGFKuNSbKYs4JMmK/images/government/videos/admin-04-directory-sync-scim-and-group-mappings.mp4?fit=max&auto=format&n=gGFKuNSbKYs4JMmK&q=85&s=e254e02786c5f309b5c5c240c7752c4e" aria-label="Video walkthrough: Directory sync (SCIM) and group mappings" />
from line 89
7989
8090Video: Directory sync (SCIM) and group mappings (2 min 3 s). Narrated with an AI-generated voice, with on-screen captions.
8191
82> [accordion] Transcript
83>
84> Directory sync is optional, and without it accounts are created at first sign-in. With it, your identity provider pushes users and groups, provisioning rules place them in organizations, and each organization maps groups to seat tiers and roles.
85>
86> On Identity and access, open SCIM provisioning. Copy the SCIM base URL, which your provider may call the Tenant URL, and select Generate token.
87>
88> The token is shown once. Copy it for your provider's secret token field, then select Done. You can revoke a token here at any time.
89>
90> In your provider's provisioning settings, paste both values, assign the groups you want to sync, and turn provisioning on.
91>
92> After the first sync, your groups appear under Directory groups with member counts, and people not yet placed wait under Synced, not routed.
93>
94> Under Provisioning rules, route groups to organizations. Send research-staff to Research Office, and claude-users to Operations Bureau. The first match wins, so add the narrower group first or drag it to the top.
95>
96> Once a rule covers them, they are placed in its organization, and the list clears on its own.
97>
98> In the organization's admin view, People now includes Group mappings. Map claude-users to a seat tier, here Standard, and claude-owners to the Owner role. Each change is applied right away.
99>
100> On Users, the provisioned members now hold their mapped seat tier and role.
101>
102> While sync is connected, your directory is the source of truth. Change groups in your provider, because role or seat tier edits made by hand are overwritten by the group mappings.
92[Transcript](https://claude.com/docs/government/video-walkthroughs.md#directory-sync-scim-and-group-mappings)
10393
104SCIM is the standard protocol identity providers use to push users and groups to a connected service automatically, so that accounts are created, updated, and deactivated in step with your agency's directory. Connecting SCIM is optional; without it, users are created the first time they sign in. With SCIM connected, a person your directory has never sent still gets an account the first time they sign in, if a [sign-in rule](#sign-in-rules) covers them.
94SCIM is the standard protocol identity providers use to push users and groups to a connected service automatically, so that accounts are created, updated, and deactivated in step with your agency's directory. Connecting SCIM is optional; without it, users are created the first time they sign in. With SCIM connected, a person your directory has never sent still gets an account the first time they sign in, if a [sign-in rule](#sign-in-rules) covers them. People join your tenant by signing in or through your directory.
10595
10696[Provisioning rules](#provisioning-rules-scim), [group mappings](https://claude.com/docs/government/org-admin/provisioning.md), and [group-specific settings](https://claude.com/docs/government/config/overview.md#group-specific-settings) need SCIM, because they act on the [directory groups](#directory-groups) your identity provider pushes. Model access and usage limits come from each person's [seat tier](https://claude.com/docs/government/org-admin/seat-tiers.md), which an organization owner can assign on the [Users](https://claude.com/docs/government/org-admin/users.md) page without SCIM.
10797
108> [!NOTE]
109>
110> You need at least one verified domain before you can generate a SCIM token. Until then, **Generate token** is unavailable and a banner prompts you to verify a domain first.
98### Connect your directory
11199
112* **SCIM base URL** is the address your identity provider pushes user and group updates to. A copy button sits next to it. You'll paste this value into your identity provider's provisioning settings (Okta and Microsoft Entra call this the *Tenant URL*).
100SCIM provisioning is configured entirely from this page, with no action needed from Anthropic. You need at least one [verified domain](#domains) before you can generate a SCIM token.
113101
114### SCIM secret token
102* **SCIM base URL** is the address your identity provider pushes user and group updates to. You'll paste this value into your identity provider's provisioning settings, where Microsoft Entra calls it the *Tenant URL* and Okta calls it the *SCIM connector base URL*.
103* **SCIM secret token.** Your identity provider authenticates to the SCIM address with a bearer token that you generate here. Click **Generate token** to create one, then paste the value into your identity provider's *Secret Token* (or equivalent) field.
115104
116Your identity provider authenticates to the SCIM address with a bearer token that you generate here. Click **Generate token** to create one, then paste the value into your identity provider's *Secret Token* (or equivalent) field.
117
118105> [!WARNING]
119106>
120107> The full token value is shown **only once**, immediately after you create it. Copy it into your identity provider before clicking Done. If you lose the value, generate a new token and revoke the old one.
121108
122The token table lists every token with its created date, a short hint (the last few characters) so you can tell them apart, and a status of **Active** or **Revoked**. You can keep more than one token active at a time, which lets you rotate without an outage: generate a new token, update your identity provider to use it, confirm a sync succeeds, and then revoke the old one. Revoking a token takes effect immediately.
109Afterward the token table shows only a short hint (the last few characters) of each token. You can keep more than one token active at a time, which lets you rotate without an outage: generate a new token, update your identity provider to use it, confirm a sync succeeds, and then revoke the old one. Revoking a token takes effect immediately.
123110
124Once a token is active and your directory completes its first sync, the provisioning-rule list and the **Synced, not routed** waiting list become available further down the page.
111### Existing accounts when you connect SCIM
125112
126## Directory groups
113Connecting SCIM keeps existing accounts. A directory entry links to the account with the same email address when a [provisioning rule](#provisioning-rules-scim) names that person's organization, or at the latest at their next sign-in once they are in an organization. There is no need to delete an account first. A deactivation in your directory reaches the account once it is linked. Until then, your directory's request to deactivate, delete, or change the email address of that user is refused with a 409 error. Have your directory resend it once the account is linked.
127114
128Once your identity provider has pushed groups over SCIM, they appear here with their member counts. To change the order, drag a group by the handle at the start of its row or use the **…** menu at the end. The order you set here is the priority used for group-level configuration on the [Config](https://claude.com/docs/government/config/overview.md#group-specific-settings) page.
115Have your identity provider send, as the primary SCIM email, the address each person signs in with. A new entry with a different address creates a second account once a provisioning rule places it, and a deactivation in your directory doesn't reach the account they use. For users managed by your directory, the email address shown in Claude for Government is kept in step with your directory, and the sign-in token's email is ignored.
129116
117### Directory groups
118
119Once your identity provider has pushed groups over SCIM, they appear here with their member counts. The order you set here is the priority used for group-level configuration on the [Config](https://claude.com/docs/government/config/overview.md#group-specific-settings) page and for [seat-tier mappings](https://claude.com/docs/government/org-admin/provisioning.md#how-mappings-are-applied).
120
130121## Routing rules
131122
132123<video controls preload="metadata" playsInline src="https://mintcdn.com/claude-ai/gGFKuNSbKYs4JMmK/images/government/videos/admin-03-organizations-seats-and-routing-rules.mp4?fit=max&auto=format&n=gGFKuNSbKYs4JMmK&q=85&s=3b4fdf17a38f17ace0a31daff24dd678" aria-label="Video walkthrough: Organizations, seats, and routing rules" />
from line 124
133124
134125Video: Organizations, seats, and routing rules (2 min 14 s). Narrated with an AI-generated voice, with on-screen captions.
135126
136> [accordion] Transcript
137>
138> Routing rules decide which organization each person lands in. Organizations hold users, seats, and settings, and their seats come from a billing account.
139>
140> Marcus, a tenant administrator, signs in and opens the tenant view from the footer.
141>
142> A new colleague, Rosa, tries to sign in. No routing rule covers Rosa yet, so the page says Almost there. The attempt is recorded for tenant administrators.
143>
144> On Identity and access, Rejected sign-ins lists the attempt. Select Test in preview to check whether any rule covers Rosa.
145>
146> The preview says refused at sign-in, because no rule matches Rosa yet.
147>
148> Under Sign-in routing, add the first rule. Set If to Anyone with email domain, and choose example.gov. Set Then place in to Operations Bureau, and select Add rule. Rules run top to bottom, and the first match wins.
149>
150> Run the preview again. Rosa would now be placed in Operations Bureau.
151>
152> Rosa selects Try again and signs in once more. Rosa lands in Operations Bureau and gets a seat, because one was free.
153>
154> On Organizations, expand Add organization. Enter a name and the Primary Owner's email, choose the billing account, then select Add. The owner does not automatically become a tenant administrator.
155>
156> On Seats, the billing account shows its pool and the organizations it funds. Give Research Office seats and select Save. Its first seats also seat its Primary Owner, and the setup banner clears.
157>
158> To send people to Research Office, add an identity provider group rule for them and drag it above the domain rule. Each person belongs to exactly one organization.
127[Transcript](https://claude.com/docs/government/video-walkthroughs.md#organizations-seats-and-routing-rules)
159128
160A **routing rule** is an instruction of the form "if a person matches this condition, place them in this organization." Routing rules are the **only** way a new person gets into your deployment; there is no default organization and no fallback.
129A **routing rule** is an instruction of the form "if a person matches this condition, place them in this organization." A new person whom no routing rule matches is refused: there is no default organization and no fallback. To send people to an organization by group, use a [provisioning rule](#provisioning-rules-scim) rather than the identity provider group rule shown in the video. Before you remove or reorder a sign-in rule, read [When rules move people](#when-rules-move-people).
161130
162Before any rule runs, the sign-in flow first checks that the person's email domain is one of your tenant's **verified domains** (listed in the Domains section above). An address outside your verified domains never reaches your tenant at all, regardless of what rules you've written.
131Before any rule runs, the sign-in flow first checks that the person's email domain is one of your tenant's [**verified domains**](#domains). An address outside your verified domains never reaches your tenant at all, regardless of what rules you've written.
163132
164There are two separate rule lists, because there are two ways a person can arrive:
133A person can arrive by signing in or through your directory, and each way has its own rule list:
165134
166* **Sign-in rules** run each time a person signs in through single sign-on. They apply on every sign-in, not just the first one, so changing a sign-in rule can move an existing member to a different organization the next time that person signs in.
167* **Provisioning rules** run when your directory creates or updates someone through SCIM. They match on synced directory groups, and changes take effect at the next directory sync.
135* **Sign-in rules** run each time a person signs in.
136* **Provisioning rules** run when your directory creates or updates someone through SCIM. They match on synced directory groups, and a change takes effect after you save it, without waiting for the next directory sync.
168137
169### When rules move people
138Until at least one rule is added, no new person can sign in, and a banner on the page says that no routing rules are configured.
170139
171Because sign-in rules run every time, a rule change has these effects on people who already exist:
172
173* If a person now matches a rule that points to a different organization, they are moved on their next sign-in. Their active sessions and API keys are revoked as part of the move, so they land cleanly in the new organization.
174* If a person no longer matches any rule (for example, you removed the only rule that covered them), they keep their current organization and can still sign in. The no-match refusal applies only to people who have never been placed.
175* If a person's account is managed by your directory (that is, it was created or linked through SCIM), sign-in rules do **not** move them. Directory-managed accounts are moved only by provisioning rules, so that your directory remains the single source of truth for where they belong.
176
177Because the Claude desktop app stores conversations on each person's own device, a move does not affect desktop chat history.
178
179> [!TIP]
180>
181> When you add or edit a rule that would move people, a confirmation dialog shows how many existing members would be affected and a sample of their email addresses. Review that list before confirming.
182
183> **For organization owners:** A member being moved out of your organization by a rule change loses their seat and role in your organization. Their account itself is kept, and they are reseated in the destination organization according to its available seats.
184
185140### Sign-in rules
186141
187Each sign-in rule reads as a sentence, for example *"Anyone with email domain `example.gov` → place in OEO."* A rule matches on one of the following:
142An **email domain** rule matches the domain of the user's email address exactly. You choose from your tenant's verified domains; you cannot type an arbitrary domain.
188143
189* An **email domain** rule matches the domain of the user's email address exactly. You choose from your tenant's verified domains; you cannot type an arbitrary domain. Subdomains are not matched automatically, so `sub.example.gov` needs its own rule if you want it routed.
190* An **identity provider (IdP) group** rule matches a value in the group membership list that your identity provider includes in the sign-in token. You type the exact value your provider sends, and matching is exact and case-sensitive.
144To place people by **group**, use a [provisioning rule](#provisioning-rules-scim).
191145
192Rules are evaluated from top to bottom, and the first match wins. To change the order, drag a rule by the handle at the start of its row or use the **…** menu at the end. Only one rule can exist for any given condition. If you pick a domain or group that already has a rule, a message below the form shows which organization it currently routes to and asks you to remove that rule first.
146Rules are evaluated from top to bottom, and the first match wins. Only one rule can exist for any given condition. Each rule shows a status line with diagnostics:
193147
194Each rule shows a status line with diagnostics:
195
196* **Last matched** (or **Never matched**) tells you when the rule most recently placed or moved someone.
197* A **matches broadly** badge marks a domain rule that sits above one or more group rules. Because it matches everyone on that domain, group rules below it can never win for those users; move it lower if that's not what you intended.
148* **Last matched** (or **Never matched**) tells you when the rule most recently matched someone.
198149* A **target deactivated** badge means the rule points at an organization that has been deactivated. The rule is skipped during evaluation.
199150* A **stale value** badge means the condition refers to something that no longer exists, such as a domain removed from your verified list. The rule is skipped during evaluation.
200151
201152### Provisioning rules (SCIM)
202153
203> [!NOTE]
204>
205> This section only appears when SCIM is connected (you have an active SCIM token or your directory has synced groups) or when provisioning rules already exist.
154The console shows this section once SCIM is connected. Provisioning rules match on **directory groups** that your identity provider has synced, and decide which organization a user is placed in when your directory provisions or updates them. You choose groups from the synced list; a group that hasn't synced yet won't appear in the picker.
206155
207Provisioning rules match on **directory groups** that your identity provider has synced, and decide which organization a user is placed in when your directory provisions or updates them. You choose groups from the synced list; a group that hasn't synced yet won't appear in the picker.
156Provisioning rules work the same way as sign-in rules: they're an ordered list, the first match wins, and only one rule can exist per group. Adding, reordering, or removing provisioning rules can move already-placed users.
208157
209Provisioning rules work the same way as sign-in rules: they're an ordered list, the first match wins, and only one rule can exist per group. Because your directory re-evaluates placement on each sync, reordering or removing provisioning rules can move already-placed users at the next sync. You'll be asked to confirm before reordering.
158A provisioning rule doesn't place an account that is in no organization. Your tenant's first administrator starts that way, able to use the admin portal but not Claude. A [sign-in rule](#sign-in-rules) for their email domain does place them, but it applies to everyone on that domain who signs in while it exists. A person with no account gets one in the rule's organization. A member of another organization whom your directory doesn't manage [moves to it](#when-rules-move-people). Removing the rule undoes neither. So add the rule, have the administrator sign out and back in, then remove it. Or contact Anthropic to place them.
210159
211### Adding and removing rules
160### Add and remove rules
212161
213To add a rule, choose the match type (for sign-in rules), pick or type the value, choose the target organization, and click **Add rule**. New rules are added at the bottom of the list; reorder after adding if you need a different priority.
162To add a rule, choose the match type (for sign-in rules), pick the value, choose the target organization, and click **Add rule**. New rules are added at the bottom of the list; reorder after adding if you need a different priority. To remove a rule, click **Remove** next to it and confirm.
214163
215To remove a rule, click **Remove** next to it and confirm. Removing the last sign-in rule is called out specifically: no new person can sign in until another rule is added, and existing members keep their current organization until another rule covers them.
164### When rules move people
216165
217## Preview routing
166A move ends the person's active sessions. It does not revoke a [Compliance API key](https://claude.com/docs/government/org-admin/compliance-api.md) they created. They lose their seat and role in the organization they leave, join the new one as a User or in the role its group mappings give them, and are reseated according to its available seats. Their account itself is kept. Because the Claude desktop app stores conversations on each person's own device, a move does not affect desktop chat history. See [Data storage and retention](https://claude.com/docs/government/security/security-and-data-handling.md#data-storage-and-retention).
218167
219Enter an email address (and, optionally, a comma-separated list of IdP groups) to see exactly how that person would be routed, without changing anything. The preview runs the same evaluation that real sign-in and provisioning use, so what you see here is what will actually happen.
168Because sign-in rules run every time, a rule change has these effects on people who already exist:
220169
221The result shows one panel for sign-in and a separate panel for directory provisioning.
170* If a person now matches a rule that points to a different organization, they are moved on their next sign-in, unless another case in this list applies.
171* If a person is a [Primary Owner](https://claude.com/docs/government/org-admin/users.md#understanding-roles) of their organization, they are moved only when they are also a [tenant administrator](https://claude.com/docs/government/tenant-admin/admins.md) and that organization has another active Primary Owner.
172* Removing an identity provider group rule (listed as **Anyone with IdP group**), or moving it lower, can move people already in its organization at their next sign-in.
173* If a person no longer matches any rule (for example, you removed the only rule that covered them), they keep their current organization and can still sign in. The no-match refusal applies only to people who have never been placed.
174* If a person's account is managed by your directory (that is, it was created or linked through SCIM), sign-in rules do **not** move them. Directory-managed accounts are moved only by provisioning rules.
222175
223> [!NOTE]
224>
225> The directory provisioning panel only appears when SCIM is connected for your tenant.
176## When someone cannot sign in
226177
227Each panel shows whether the person would be placed (and in which organization) or refused, and it lists every rule in order with the outcome for each: **matched**, **no match**, or **target deactivated**. If the email's domain isn't one of your tenant's verified domains, the preview explains that sign-in would never reach this tenant at all, and no rules are evaluated.
178### Preview routing
228179
229> [!TIP]
230>
231> Editing any rule clears the preview result automatically so you never read a verdict that's out of date. Re-run the preview after making changes.
180Enter an email address to see how that person would be routed, without changing anything. For a person who already has an account, the preview shows which rule matches them, not [whether they are moved or refused](#when-rules-move-people).
232181
233## Unplaced users
182The result lists the rules in order with the outcome for each, for sign-in and, when SCIM is connected, for directory provisioning.
234183
235The unplaced-users lists collect people who have arrived but aren't in an organization yet. There are two kinds of entry:
184### Unplaced users
236185
237* **Rejected sign-ins** are people from one of your verified domains who tried to sign in but matched no rule and were turned away. Each entry shows who tried, when they last tried, how many times, and which IdP groups their sign-in token carried. These records are kept so you can see who's trying and failing to get in.
238* **Synced, not routed** entries are people your directory has provisioned through SCIM who don't yet match any provisioning rule. They exist in the sync but have not been placed in an organization, so they cannot sign in.
186* **Rejected sign-ins** lists people who tried to sign in and were turned away, for example because no rule matched them. Each entry shows who tried and when. These records are kept so you can see who's trying and failing to get in. Click **Test in preview** to load that person's email into the preview. Click **Clear** to delete the record, or **Clear all** to remove every entry. Clearing does not block the person; a fresh entry appears if they are refused again.
187* **Synced, not routed**, in the **Provisioning rules (SCIM)** section, lists directory entries not yet linked to an account. A new person here can sign in once a sign-in rule covers them or a provisioning rule places them. Someone who already has an account keeps signing in. To place the people in a group, add a provisioning rule that covers it. If someone in the group already has an account in another organization, the rule can [move them](#when-rules-move-people), unless they are a Primary Owner. The rule doesn't place an [account in no organization](#accounts-in-no-organization). People on a domain you haven't verified aren't placed, and people whose mapped tier has no free seats wait for one, as described under [How mappings are applied](https://claude.com/docs/government/org-admin/provisioning.md#how-mappings-are-applied).
239188
240> [!NOTE]
241>
242> The Rejected sign-ins list only appears when at least one sign-in has been turned away. The Synced, not routed list appears inside the provisioning-rules card and only when at least one provisioned user is waiting without a matching rule.
189Once a person is placed, their entries in these lists are cleaned up automatically.
243190
244For rejected sign-ins you can do the following:
191### Sign-in error pages
245192
246* Click **Test in preview** to load that person's email and recorded groups into the preview, so you can see exactly which rule would cover them before you add one.
247* Click **Clear** to delete the record, or **Clear all** to remove every entry. Clearing does not block the person; a fresh entry appears if they try again.
193The table shows what a person may see when sign-in fails, and what to do about it.
248194
249For synced, not routed entries, add a provisioning rule that covers their group. They'll be placed automatically at the next directory sync; there is nothing to clear.
250
251Once a person is successfully placed (by signing in through a matching rule or by the next directory sync), their entries in these lists are cleaned up automatically.
252
253## Things to know
254
255* Keep the DNS TXT record in place while you are using Claude for Government.
256* There is no local break-glass account or stored password. When single sign-on is unavailable, Primary Owners and tenant administrators can request an emailed single-use sign-in link from the sign-in page.
257* SCIM provisioning is configured entirely from this page, with no action needed from Anthropic. Use **Generate token** under [SCIM provisioning](#scim-provisioning) on this page to create a bearer token, then enter it along with the SCIM base URL shown there into your identity provider's provisioning settings.
258* If two administrators reorder the same rule list at the same time, the second save is rejected with a message that the rules changed in another session. The list refreshes so you can review the current order and try again.
259* A user who was previously deactivated cannot regain access by matching a rule; they are refused with a deactivated-user reason instead.
260* For users managed by your directory, the email address shown in Claude for Government is kept in step with your directory. The sign-in token's email is ignored for those users so that a provider that sends different values in different fields (a common quirk in Microsoft Entra) does not bounce the address back and forth.
195| What the person sees | What it means | What to do |
196| - | - | - |
197| "We couldn't find an organization for that email." | The address's domain is not a verified domain of any active tenant. Until Anthropic finishes setting up your tenant, everyone sees this | Verify the domain under [Domains](#domains). If no administrator can sign in, contact your Anthropic representative |
198| "Single sign-on isn't configured for your organization yet." | The domain is verified, but no identity provider is connected | Connect [single sign-on](#single-sign-on). Primary Owners and tenant administrators can use the [emailed link](#emailed-sign-in-link) |
199| **Almost there** | Your identity provider signed them in, but no routing rule matched, or the rule's organization is deactivated | Find them under **Rejected sign-ins** and add a [rule](#routing-rules) that covers them |
200| **Signed in with a different account** | Your identity provider returned another address than the one they typed | They can continue as the returned address. If sign-in then finds no organization, verify that address's domain, or correct the address your provider sends |
201| **Email address missing** | Your identity provider didn't send an email address | Add an email attribute or claim in your identity provider, or name it under [Attribute mapping](#attribute-mapping-advanced) |
202| **Account deactivated** | Their account or directory entry is deactivated | Reactivate them in your directory: see [Deactivated users](https://claude.com/docs/government/org-admin/users.md#deactivated-users). If your directory doesn't manage them, contact your Anthropic representative |
203| "Invalid signature in response from identity provider" | Your provider doesn't sign the assertion (which is required once you save the SAML section), or your saved SAML metadata no longer matches the certificate your provider signs with | For an unsigned assertion, set your provider to sign it, and sign-in works again with no change in Claude for Government. For a changed certificate, paste the new metadata under [Connect with SAML](#connect-with-saml) |
204| "Login timeout. Please sign in again." | A SAML response that arrives outside its validity period, or names the wrong audience, can produce this page right after the person signs in at your provider | Check the clock on each identity provider server you run, and set the audience in your provider to your [**SP Entity ID / Audience**](#register-in-your-identity-provider) |
205| **Sign-in not completed** | The sign-in was canceled, or the exchange with your identity provider failed | Run **Test sign-in**, which names the likely cause |
261206