Connectors
Where people and groups come from when the organization's identity provider is the source of truth. A scim connector is a SCIM 2.0 endpoint (RFC 7643, 7644) at /scim/v2 on the organization's host that Okta, Microsoft Entra ID and others push people and groups to, with a token of its own. A google_workspace connector reads users and groups from Google Workspace's Admin SDK Directory API, with a service account granted read-only domain-wide delegation, every 15 minutes and on :sync. Suspended users are inactive people; a user deleted in Google is deactivated and handed to the organization; group membership is flattened. A sync that would remove more than a quarter of the people or groups it manages (and more than 10) applies everything else and holds the removals until :sync confirms them. What a connector creates is its own: /v1 refuses changes to the fields it writes with 409 /problems/wrong-writer.
The connector model
A connector.
Properties
- Name
id- Type
- string
- Description
Connector ID.
- Name
etag- Type
- string
- Description
Current version, for
If-Match.
- Name
name- Type
- string
- Description
Unique in the organization.
- Name
description- Type
- string
- Description
What it is for.
- Name
kind- Type
- string
- Description
How it gets people and groups. Set when it is created. One of
scim,google_workspace.
- Name
enabled- Type
- boolean
- Description
While false, its token is refused, it does not sync, and nothing it manages changes.
- Name
google_workspace- Type
- object
- Description
For
google_workspace: where it reads from.nullfor other kinds. Can benull.
- Name
google_workspace.admin_email- Type
- string
- Description
The Workspace administrator the service account acts as.
- Name
google_workspace.customer- Type
- string
- Description
The Workspace customer ID, or
my_customer.
- Name
google_workspace.service_account- Type
- string
- Description
The service account Passway signs as: the key's, or else the cell's own, which has no key.
nulluntil there is one. Can benull.
- Name
google_workspace.client_id- Type
- string
- Description
The service account's numeric client ID, to grant domain-wide delegation to in the Google Admin console. Can be
null.
- Name
google_workspace.key_id- Type
- string
- Description
The key's ID;
nullwith the cell's own account, which has no key. Can benull.
- Name
sync- Type
- object
- Description
For connectors Passway pulls from: how syncing is going.
nullforscim. Can benull.
- Name
sync.state- Type
- string
- Description
How it is doing. One of
pending,ok,failing,held,disabled.
- Name
sync.last_sync_at- Type
- timestamp
- Description
When the last sync finished, successful or not. Can be
null.
- Name
sync.last_success_at- Type
- timestamp
- Description
When the last successful sync finished. Can be
null.
- Name
sync.last_error- Type
- string
- Description
Why the last sync failed or was held, or what a successful one skipped (a group whose name is taken).
nullafter a clean sync. Can benull.
- Name
sync.next_sync_at- Type
- timestamp
- Description
When the next scheduled sync is due. Can be
null.
- Name
sync.people- Type
- integer
- Description
People the connector manages.
- Name
sync.groups- Type
- integer
- Description
Groups the connector manages.
- Name
sync.held_removals- Type
- integer
- Description
While
held: the people, groups and group memberships the sync would remove.
- Name
sync.push_until- Type
- timestamp
- Description
For
google_workspace: until when Google tells Passway of changes to users the moment they happen (push notifications), so a sync follows within seconds. Passway renews it.nullwhen it isn't on: the schedule still syncs every 15 minutes. Can benull.
- Name
labels- Type
- object
- Description
Labels.
- Name
managed_by- Type
- string
- Description
The tool that manages it, if any. Can be
null.
- Name
created_at- Type
- timestamp
- Description
When it was created.
- Name
updated_at- Type
- timestamp
- Description
When it last changed.
List connectors
Needs the connectors:read scope.
Query parameters
- Name
page_size- Type
- integer
- Description
Results per page, 1 to 200.
0or absent means 50; more than 200 means 200 (AIP-158).
- Name
page_token- Type
- string
- Description
next_page_tokenfrom the previous page.
- Name
updated_since- Type
- timestamp
- Description
Only resources changed at or after this time.
- Name
kind- Type
- string
- Description
Only connectors of this kind. One of
scim,google_workspace.
Request
curl https://acme.ext.passway.com/v1/connectors \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"data": [
{
"id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "okta",
"description": "…",
"kind": "scim",
"enabled": true,
"google_workspace": null,
"sync": null,
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}
],
"next_page_token": null
}
Create a connector
For a scim connector, returns the SCIM base URL and the bearer token to give the identity provider; the token is never shown again. A google_workspace connector needs service_account_key, which is kept sealed and never returned, and syncs within a minute.
Needs the connectors:write scope.
Headers
- Name
Idempotency-Key- Type
- string
- Description
A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns
422; repeating it while the first is still running returns409withRetry-After.
Required attributes
- Name
name- Type
- string
- Description
Unique in the organization.
- Name
kind- Type
- string
- Description
How it gets people and groups. One of
scim,google_workspace.
Optional attributes
- Name
description- Type
- string
- Description
What it is for.
- Name
enabled- Type
- boolean
- Description
Whether it starts enabled. Default true.
- Name
google_workspace- Type
- object
- Description
Required for
google_workspace, and only for it.
- Name
google_workspace.admin_email- Type
- string
- Description
A Workspace administrator for the service account to act as. Passway only reads, with the
admin.directory.user.readonlyandadmin.directory.group.readonlyscopes.
- Name
google_workspace.customer- Type
- string
- Description
The Workspace customer ID, such as
C03az79cb. The default,my_customer, is the administrator's own account.
- Name
labels- Type
- object
- Description
Labels.
- Name
managed_by- Type
- string
- Description
The tool that manages it, if any.
Request
curl -X POST https://acme.ext.passway.com/v1/connectors \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "okta",
"kind": "scim",
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
}
}'
Response
{
"connector": {
"id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "okta",
"description": "…",
"kind": "scim",
"enabled": true,
"google_workspace": null,
"sync": null,
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
},
"scim_url": "https://acme.ext.passway.com/scim/v2",
"token": "pwsc_3q2K…"
}
Get a connector
Needs the connectors:read scope.
Path parameters
- Name
connector_id- Type
- string
- Description
Connector ID:
con_followed by 1 to 64 lowercase letters and digits.
Request
curl https://acme.ext.passway.com/v1/connectors/con_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "okta",
"description": "…",
"kind": "scim",
"enabled": true,
"google_workspace": null,
"sync": null,
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}
Update a connector
A JSON merge patch (RFC 7396): fields in the body replace the current ones, null removes a field where the schema allows null, and objects such as labels are merged. Requires If-Match with the current etag.
Needs the connectors:write scope.
Path parameters
- Name
connector_id- Type
- string
- Description
Connector ID:
con_followed by 1 to 64 lowercase letters and digits.
Headers
- Name
If-Match- Type
- string
- Description
The resource's current
etag, in double quotes. Required.
Optional attributes
- Name
name- Type
- string
- Description
New name.
- Name
description- Type
- string
- Description
New description.
- Name
enabled- Type
- boolean
- Description
Enable or disable it.
- Name
google_workspace- Type
- object
- Description
For
google_workspace: new settings. The key changes with:set-service-account-key.
- Name
google_workspace.admin_email- Type
- string
- Description
New administrator to act as.
- Name
google_workspace.customer- Type
- string
- Description
New customer ID.
- Name
labels- Type
- object
- Description
Labels to set;
nullvalues remove a label. Can benull.
- Name
managed_by- Type
- string
- Description
The tool that manages it;
nullclears it. Can benull.
Request
curl -X PATCH https://acme.ext.passway.com/v1/connectors/con_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H 'If-Match: "3f9a"' \
-H "Content-Type: application/merge-patch+json" \
-d '{
"labels": {
"old-label": null,
"team": "security"
}
}'
Response
{
"id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "okta",
"description": "…",
"kind": "scim",
"enabled": true,
"google_workspace": null,
"sync": null,
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}
Delete a connector
Its token stops working at once. The people and groups it created stay, and become the organization's to change through /v1.
Needs the connectors:write scope.
Path parameters
- Name
connector_id- Type
- string
- Description
Connector ID:
con_followed by 1 to 64 lowercase letters and digits.
Headers
- Name
If-Match- Type
- string
- Description
The resource's current
etag, in double quotes. Required.
Request
curl -X DELETE https://acme.ext.passway.com/v1/connectors/con_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H 'If-Match: "3f9a"'
Response
204 Deleted
Rotate a connector's token
Returns a new token, which replaces the old one at once. Give it to the identity provider. Only scim connectors have a token; others return 409.
Needs the connectors:write scope.
Path parameters
- Name
connector_id- Type
- string
- Description
Connector ID:
con_followed by 1 to 64 lowercase letters and digits.
Headers
- Name
If-Match- Type
- string
- Description
If set, the action only runs if the resource's
etagstill matches.
- Name
Idempotency-Key- Type
- string
- Description
A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns
422; repeating it while the first is still running returns409withRetry-After.
Request
curl -X POST https://acme.ext.passway.com/v1/connectors/con_01jd8k3m2v9x4q7r5t6w8y0z1a:rotate-token \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
Response
{
"connector": {
"id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "okta",
"description": "…",
"kind": "scim",
"enabled": true,
"google_workspace": null,
"sync": null,
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
},
"scim_url": "https://acme.ext.passway.com/scim/v2",
"token": "pwsc_3q2K…"
}
Sync a connector from its directory now
For connectors Passway pulls from. Reads the directory and applies it, and returns the connector: sync says how it went. A sync that cannot read the directory changes nothing and records why. confirm_removals applies removals a sync held. A disabled connector or a scim one returns 409.
Needs the connectors:write scope.
Path parameters
- Name
connector_id- Type
- string
- Description
Connector ID:
con_followed by 1 to 64 lowercase letters and digits.
Headers
- Name
If-Match- Type
- string
- Description
If set, the action only runs if the resource's
etagstill matches.
- Name
Idempotency-Key- Type
- string
- Description
A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns
422; repeating it while the first is still running returns409withRetry-After.
Optional attributes
- Name
confirm_removals- Type
- boolean
- Description
Apply removals even if there are more than a sync makes on its own: confirms a
heldsync. Default false.
Request
curl -X POST https://acme.ext.passway.com/v1/connectors/con_01jd8k3m2v9x4q7r5t6w8y0z1a:sync \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'
Response
{
"id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "okta",
"description": "…",
"kind": "scim",
"enabled": true,
"google_workspace": null,
"sync": null,
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}
Set a Google Workspace connector's key
Replaces the service account's JSON key. It is kept sealed and never returned. The connector syncs within a minute with the new key.
Needs the connectors:write scope.
Path parameters
- Name
connector_id- Type
- string
- Description
Connector ID:
con_followed by 1 to 64 lowercase letters and digits.
Headers
- Name
If-Match- Type
- string
- Description
If set, the action only runs if the resource's
etagstill matches.
- Name
Idempotency-Key- Type
- string
- Description
A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns
422; repeating it while the first is still running returns409withRetry-After.
Required attributes
- Name
service_account_key- Type
- string
- Description
The service account's JSON key file, as a string. Kept sealed; never returned.
Request
curl -X POST https://acme.ext.passway.com/v1/connectors/con_01jd8k3m2v9x4q7r5t6w8y0z1a:set-service-account-key \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"service_account_key": "…"
}'
Response
{
"id": "con_01jd8k3m2v9x4q7r5t6w8y0z1a",
"etag": "3f9a",
"name": "okta",
"description": "…",
"kind": "scim",
"enabled": true,
"google_workspace": null,
"sync": null,
"labels": {
"passway.example/cost-center": "4410",
"team": "facilities"
},
"managed_by": "terraform",
"created_at": "2026-11-30T14:02:11Z",
"updated_at": "2026-11-30T14:02:11Z"
}