Directory sync
People and groups usually come from the directory you already run. A connector brings them in, and from then on the directory is the source of truth: change someone there, and Passway follows.
SCIM 2.0
Okta, Microsoft Entra ID and other identity providers push people and groups to /scim/v2 on your organization's host, following SCIM 2.0 (RFC 7643 and 7644). Create a scim connector to get the endpoint's bearer token:
cURL
curl -X POST https://acme.ext.passway.com/v1/connectors \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{ "name": "okta", "kind": "scim" }'
The token is shown once. In your identity provider's SCIM settings, use:
- Base URL:
https://acme.ext.passway.com/scim/v2 - Authentication: HTTP header, bearer token, with the connector's token.
If the token leaks, rotate it.
How SCIM maps
- Users are people.
displayName, the primary email,externalId,activeanduserTypemap onto the person. Everything else the identity provider sends, such asuserName,name, otheremailsand extensions, is kept beside the person so it reads back as written. Passwords are never kept. - Groups are groups, with their members.
active: falseputs the person's credentials on every reader's deny list at once.DELETE /Users/{id}deactivates the person and stops the connector managing them. They stay, with their history, until the organization deletes them through/v1.
PATCH follows what Okta and Entra actually send: operations with and without a path, value filters such as emails[type eq "work"].value, extension URNs, and booleans written as "True" and "False".
Google Workspace
A google_workspace connector reads users and groups from Google Workspace's Directory API every 15 minutes, using a service account with read-only domain-wide delegation. After you create it, its client_id is what to grant in the Google Admin console, under Security › Access and data control › API controls › Domain-wide delegation, with these scopes:
https://www.googleapis.com/auth/admin.directory.user.readonly
https://www.googleapis.com/auth/admin.directory.group.readonly
To sync at once rather than waiting, call :sync.
- Suspended users become inactive people.
- A user deleted in Google is deactivated and handed to the organization.
- Group membership is flattened: members of nested groups are members.
Safety
A sync that would remove more than a quarter of the people or groups a connector manages (and more than 10) applies everything else, and holds the removals until you confirm them with :sync. A misconfigured directory can't empty your building in one go.
Who owns what
What a connector creates is its own. /v1 refuses changes to the fields it writes with 409 and /problems/wrong-writer, so the directory and Passway never fight over a field. Deleting the connector hands its people and groups back to the organization.
People no directory knows about, such as visitors and break-glass administrators, are created directly with POST /v1/people.