Test mode: paid plans aren't on sale yet, so nothing is charged. Every plan's limits apply.

← Docs

Provisioning (SCIM)

Your customers' identity providers (Okta, Entra ID, Google Workspace, JumpCloud) can manage their people in Nod themselves: create them when they join, update them, deactivate them when they leave. Nod speaks SCIM 2.0 (RFC 7643, RFC 7644) for this.

Setting it up

Make a token for the identity provider, tied to the customer's organization if they have one:

nod scim token acme --organization initech --label "Initech's Okta"
# SCIM token 01J… for acme, organization initech (shown once, store it now): scim_…

In the identity provider's provisioning settings, enter:

What it does

The identity providerNod
Looks a person up (filter=userName eq "…" or externalId eq "…")Finds them by username or the provider's own id
Creates themA user with that username, name, email and externalId. With an organization's token, a member of it
Updates them (PUT, or PATCH in Okta's or Entra's style)Changes username, display name, name, email or externalId. A changed email becomes unverified
Deactivates them (active: false)Blocks them: no sign-in, every grant revoked, sessions stop
Reactivates themUnblocks them
Deletes themDeletes them, after revoking their grants

Groups

The identity provider can push its groups too (Okta's "Push Groups", Entra ID's group provisioning). Each group becomes a role named scim:<group id>, with the group's name as its description, and its members hold that role. You decide what the group allows, by giving its role permissions as you would any role:

curl -X PUT "$ISSUER/api/v1/roles/scim:01jd…/permissions" -H "Authorization: Bearer $MGMT" \
  -d '{"resource": "https://invoices.example", "scopes": ["invoices:read"]}'
The identity providerNod
Looks a group up (filter=displayName eq "…")Finds the token's group of that name (names are unique per token, any case)
Creates it, with or without membersA new role; each member holds it
Adds or removes members (PATCH in Okta's or Entra's style, or PUT)They gain or lose the role, and the permissions it carries, at their next token
Renames itThe role's description changes; its name, and so its permissions, stay
Deletes itNobody holds the role, and it is deleted

Bulk

POST /scim/v2/Bulk (RFC 7644 §3.7) takes up to 100 operations on Users and Groups (1 MB), and runs them in order, each exactly as if it had been sent alone: the same token, the same checks, the same answers. An operation can name what an earlier one created by its bulkId, for example a new user as a new group's member:

{ "schemas": ["urn:ietf:params:scim:api:messages:2.0:BulkRequest"], "failOnErrors": 1, "Operations": [
  { "method": "POST", "path": "/Users", "bulkId": "u1", "data": { "userName": "alice" } },
  { "method": "POST", "path": "/Groups", "data": { "displayName": "Finance", "members": [{ "value": "bulkId:u1" }] } } ] }

Operations aren't one transaction: each succeeds or fails by itself, with its own status (and response when it failed). failOnErrors stops the rest after that many failures. A bulkId that no earlier operation created is a 409 for that operation.

Not supported: sorting, and filters other than userName eq, externalId eq and displayName eq.