Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io

    SCIM Provisioning

    The directory drives the roster

    SCIM 2.0 lets your enterprise customer's identity provider create, update and deactivate users in your app automatically. Someone joins the company and appears; someone leaves and their sessions end. Without it, SSO gets people in but nothing takes them out.

    1. Mint a provisioning token

    SCIM tokens belong to a connection, not to a project — so create the SAML or OIDC connection first. Then, on that connection, Mint SCIM token.

    2. The prefix tells you the environment

    EnvironmentToken prefix
    Productionbd_scim_live_…
    Sandboxbd_scim_test_…

    The prefix decides the environment before any lookup happens, so it must match the connection's. A production connection cannot be provisioned with a sandbox token — it would authenticate into the wrong set of identities entirely.

    3. Point the IdP at the endpoints

    Base URL
    https://api.billdog.io/v1/scim-v2
    EndpointSupports
    /UsersGET (list, filter, page) · POST · GET/PUT/PATCH/DELETE by id
    /GroupsSame, plus membership changes
    /ServiceProviderConfigWhat the IdP reads to discover capabilities

    Authentication is Authorization: Bearer <token>. Listing supports startIndex and count, and filtering on userName eq "…" — the filter Okta and Entra use to decide whether to create, update or deactivate a person. Pages are capped at 200.

    Deprovisioning

    Both a DELETE and a PATCH setting active: false deprovision the user: their sessions end and they can no longer sign in. Entra issues updates exclusively as PATCH, so both paths matter and both are supported.

    Deprovisioning ends access; it is not an erasure. To delete the person's data, use the data-subject-request flow.

    Directory groups → organization roles

    Map a directory group to an organization role, and membership of that group grants the role. The canonical two-group setup is All Employees → org:member and Admins → org:admin.

    • A group that maps to nothing is inert. Groups are mirrored whether or not you map them — a directory should not be able to grant authority in your customer's organization merely by existing.
    • Directory grants and manual grants are recorded separately. Someone hand-promoted to org:admin who also signs in through SSO keeps that grant; a directory sync cannot quietly take it away.
    • Reconciliation is order-independent. Roles are computed across every mapped group at once, so whichever group the IdP happens to sync last does not decide everyone's role.
    • Mapping requires the connection to belong to an organization.

    Setting it up in Okta and Entra

    In both, provisioning is configured on the same application as SSO:

    • Okta — application → Provisioning → Configure API Integration. Base URL https://api.billdog.io/v1/scim-v2, API token as minted. Enable Create, Update and Deactivate.
    • Entra ID — enterprise application → Provisioning → Automatic. Tenant URL is the same base URL; Secret Token is the minted token. Test Connection before saving.

    Then push groups, and map the ones that should carry roles.

    When it does not work

    SymptomCause
    401 on Test ConnectionToken mistyped or revoked
    403 "not a SCIM provisioning token"An ordinary secret key was pasted instead of a minted SCIM token
    Users sync into the wrong environmentA bd_scim_test_ token on a production connection, or the reverse
    Groups sync but nobody gets a roleThe groups are mirrored and unmapped, or the connection has no organization

    Was this page helpful?

    Or rate this page:

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.