Security and governance / User guide
SCIM provisioning
Provision members and groups from Okta, Microsoft Entra ID or Google Workspace, and use the groups in your tailnet policy.
On this page
Let your identity provider create, update and deactivate the organization's members and groups over SCIM 2.0, and use its groups in your tailnet policy.
Before you begin
You need a role that may manage single sign-on (admin or owner). SCIM works with Okta, Microsoft Entra ID, Google Workspace and any other SCIM 2.0 client. Members still sign in through your single sign-on connection: SCIM decides who is a member, SSO lets them in.
Know what provisioning does to a member:
- A new user gets an Anchras account and joins the organization with the connection's default role: Member, Viewer or Projects only. A provider never grants admin or owner. An account that already exists joins only when it is already a member, or when its verified email is in the organization's claimed email domain; otherwise the provider gets a conflict and you invite the person first.
- Deactivating a user (Okta's deactivate, Entra ID's disable) suspends their organization membership: they keep their role and their role bindings, but none of them grants anything, organization-wide, on a project or through a team, and they cannot sign in to the organization. It also suspends them in the organization's Anchras Network: their devices' keys expire and drop out of every peer's map at once. Reactivating lifts both. Devices stay expired until the user logs each one in again. An owner is suspended too, unless they are the organization's last owner who is not; they are still suspended in the tailnet. Settings › Members shows the member as *Suspended by identity provider*, and an admin cannot resume them while the provider has them deactivated.
- A suspension an admin made (Settings › Members, or
anchras orgs members suspend) stays when the provider reactivates the user; the admin resumes them. - Deleting a user also removes them from the tailnet with every device they own and drops their role bindings. Their account and a suspended Projects-only membership stay for an admin to remove or resume; provisioning them again lifts the suspension.
- Groups, nested ones included, become
group:sources of the tailnet policy, named after the group:Engineering Teamisgroup:engineering-team. Deactivated users leave every group.
Get started
- Open Settings → Provisioning and choose New SCIM connection, or use the CLI:
anchras scim connections create --name "Okta" --idp oktaCopy the bearer token now; it is shown only once. Note the SCIM base URL, https://<API host>/scim/v2.
- Configure the identity provider:
- Okta: in the app's Provisioning tab, enable SCIM provisioning. Set the SCIM connector base URL to the base URL, the unique identifier field to
userName, and authentication to HTTP Header with the token. Enable *Push New Users*, *Push Profile Updates*, *Push Groups* and *Deactivate Users*. - Microsoft Entra ID: in the enterprise application's Provisioning, choose *Automatic*. The tenant URL is the base URL and the secret token is the token. Test the connection, map
userPrincipalNameormailtouserName, assign users and groups, and start provisioning. - Google Workspace: Google provisions only through a catalog app's auto-provisioning (endpoint URL and access token), and it syncs users, not group memberships. Use Okta or Entra ID if you need groups.
- Name the provider's groups in your tailnet policy:
{
"tagOwners": { "tag:server": ["group:platform-team"] },
"acls": [
{ "action": "accept", "src": ["group:engineering-team"], "dst": ["tag:server:22,443"] }
]
}anchras scim groups lists each group's policy name. The policy is checked against the groups when you save it, so provision a group before naming it.
Operate the service
anchras scim connections list (or the Provisioning page) shows each connection's last request and last error. A request the platform could not finish (say, the tailnet was unreachable while suspending a user) fails, so the provider retries it, and the next attempt completes the change.
Rotate the token with anchras scim connections rotate <id>; the old one stops working at once. revoke stops the provider without touching what it provisioned. delete removes the connection and its groups, which then stop granting tailnet access; the accounts and memberships stay.
Group changes reach the tailnet's devices within seconds, and every replica of the coordination server within a minute.
Availability and limits
SCIM provisioning is in preview. The endpoint supports /Users and /Groups with GET, POST, PUT, PATCH and DELETE, filtering (userName, externalId, displayName and the rest of the SCIM filter language), pagination of up to 1,000 resources a page, and the discovery endpoints. Bulk operations and sorting are not supported. Each connection is limited to 1,200 requests a minute.
If the provider renames or deletes a group your policy names, that group's rules grant nothing until you update the policy; the rest of the policy keeps working.
Troubleshooting
A 401 means the token is wrong, rotated or revoked. A 409 on a new user means another connection already provisioned them, or an account with that email exists outside the organization: invite it, or claim the email domain. A user without an email address (neither a primary email nor an email userName) is refused. A 429 asks the provider to slow down; it retries on its own.
Next steps
See the CLI guide for anchras scim, and machine enrollment for devices that join without a person.
CLI commands
Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.
| Command | Purpose |
|---|---|
scim connections list / get <id> | The organization's SCIM connections (ListConnections, GetConnection, ADA-2171): identity providers (Okta, Microsoft Entra ID, Google Workspace, any SCIM 2.0 client) that provision members and groups at <API base URL>/scim/v2. Shows each connection's token hint or revocation, its users and groups, and its sync status (last request, last error). Needs sso.read (owners and admins; a key or custom role scoped sso.manage also reads). |
scim connections create --name <name> --idp <okta\|entra\|google\|other> [--default-role <member\|viewer\|none>] | Create a connection (CreateConnection) and print its bearer token once (anchras-scim-…; only its hash is stored) with the SCIM base URL to paste into the provider. Provisioned users get the default role (none is Projects only; a provider never grants admin or owner); existing members keep theirs. A deactivated user's role becomes none until reactivation (an owner's never changes) and they are suspended in the Anchras Network; a deleted one also leaves the tailnet with their devices. Needs sso.manage. |
scim connections rotate <id> / revoke <id> / delete <id> | Replace the token (the old one stops at once; also lifts a revocation), revoke it (the provider can no longer provision; what it provisioned stays), or delete the connection with its directory records (its groups stop feeding the tailnet policy; accounts and memberships stay). Needs sso.manage. |
scim users [list] [--connection <id>] / scim groups [list] [--connection <id>] | What the connections provisioned (ListProvisionedUsers, ListProvisionedGroups; --limit, --offset). Users show their state (deactivated, suspended in the tailnet) and organization role; groups show the group: name the tailnet policy names them by (Engineering Team → group:engineering-team; nested groups count, deactivated users are left out). Needs sso.read (owners and admins; a key or custom role scoped sso.manage also reads). |
API reference
Browse procedures, request and response types, and download the complete OpenAPI contract.
