Documentation

Provision people with SCIM

Connect your identity provider via SCIM 2.0 to automatically create, update, and deactivate user accounts in screenRIG and keep project access synchronized with your directory groups. SCIM works with Microsoft Entra ID, Okta, and any SCIM 2.0 client that authenticates with a bearer token.

What provisioning does

  • Joiners: Assigning a user to the screenRIG app in your identity provider creates their account and adds them as a member of your organization. Provisioned users sign in through single sign-on with no password and have no project access until a group grants it.
  • Movers: Binding a provisioned group to a project grants its members access automatically. Adding or removing someone from the group adds or removes the access.
  • Leavers: Deactivating or unassigning a user ends their sessions and their access. Note that agents and OAuth grants approved by that person keep running until the user is deactivated, by user provisioning or by screenRIG staff—requiring SSO and disabling the user at your identity provider do not end those agents or OAuth grants.

Before you start

  • Configure single sign-on and verify at least one domain for your organization. Provisioning only creates accounts for email addresses at your verified domains.
  • Confirm your organization is on an Enterprise plan, which includes user provisioning (see pricing).
  • Sign in as an organization administrator.

Turn it on

  1. Open Organization settings → User provisioning (SCIM) and click Turn on provisioning. Copy the Base URL (https://api.screenrig.ai/scim/v2—note that it uses the API origin, not the dashboard origin).
  2. Under Provisioning tokens, click Create token, enter a descriptive Token name (for example, Entra), and confirm. Copy the token immediately (srscim_ followed by 43 characters): it is shown once, and screenRIG stores only a hash.

Enabling provisioning and creating tokens require re-authentication with your passkey or password. An SSO session from the last 10 minutes satisfies this check if your identity provider supplies the authentication timestamp; otherwise the dashboard prompts you to sign in again at your provider.

An organization can hold up to five active tokens. To rotate a token without downtime, create a new token, paste it into your identity provider, and then revoke the old one. The token list shows when each token was last used. Turning provisioning off returns 403 to all SCIM requests without altering anyone's existing access.

Microsoft Entra ID

  1. Open your screenRIG enterprise application (the same app configured for SSO), go to Provisioning, and set Provisioning Mode to Automatic.
  2. Under Admin Credentials, paste the base URL into Tenant URL and the token into Secret Token. Click Test Connection, then Save.
  3. Open Mappings → Provision Microsoft Entra ID Users:
    • Map userName from userPrincipalName (or from mail if your UPNs differ from sign-in email addresses).
    • Map emails[type eq "work"].value from mail.
    • Keep the default active expression: Switch([IsSoftDeleted], , "False", "True", "True", "False").
    • Keep Entra's other default mappings. screenRIG selects the work email first, falling back to primary email, then userName; the chosen address must belong to a verified domain and match the address sent by SSO.
  4. Leave Provision Microsoft Entra ID Groups enabled to manage project access by group.
  5. Under Settings, set Scope to Sync only assigned users and groups, then assign users and groups under Users and groups.
  6. Set Provisioning Status to On and save. Entra runs an initial sync and then syncs roughly every 40 minutes. Use Provision on demand to sync an individual user or group immediately.

Okta

  1. Open your screenRIG app in Okta. Under General → App Settings, click Edit and set Provisioning to SCIM.
  2. Open Provisioning → Integration → Edit:
    • Enter the base URL as the SCIM connector base URL and userName as the unique identifier field for users.
    • Enable Push New Users, Push Profile Updates, and Push Groups.
    • Set Authentication Mode to HTTP Header. In a custom SCIM app, paste the token directly into the HTTP Header field; where Okta asks for an API Token (such as Okta SCIM test apps), enter Bearer <token>. Both formats work.
    • Click Test Connector Configuration, then Save.
  3. Open Provisioning → To App → Edit and enable Create Users, Update User Attributes, and Deactivate Users. Leave Sync Password off—screenRIG ignores passwords.
  4. Under Sign On, set Application username format to Email.
  5. Assign users and groups under Assignments, then push the groups you want to bind under Push Groups.

Okta deactivates users with active: false and never sends SCIM DELETE requests.

Groups and projects

Provisioned groups appear in Organization settings → User provisioning (SCIM) → Provisioned groups, showing member counts and bound projects. A group grants no project access until a project approver binds it:

  1. Inside the target project, open Access → Groups. Any member can view bindings; the project owner and members who can approve can create or remove them. (Organization administrators must join the project first, which gives them approver access.)
  2. Under Bind a group, select a Group and a Role: Member (standard access) or Approver (can also approve reviews). Click Bind group. Click Remove binding to unbind it later.

Screen-scoped bindings

A group binding can also restrict members to specific screen folders or screens using the same screen scope available to individual members. In Bind a group, choose Whole project or Limited to screens (Approver bindings accept folders only):

  • A user's accessible screens are the union of all their group bindings' scopes; any unscoped binding grants whole-project access.
  • A user gets Approver privileges only if their Approver bindings cover all of their accessible screens (for example, Approver on one folder plus Member on the whole project results in Member access across the whole project).
  • Provisioning never downgrades manually granted access and does not limit a person while service clients they made are live. Any skipped scope change appears in the recent activity of User provisioning and applies on the next sync once the service clients are revoked.
  • A binding's scope is immutable—to change it, remove the binding and create a new one.

How group memberships combine

  • Without screen scopes, a user in multiple bound groups receives the highest role (Approver over Member).
  • Joining or leaving a group adds or removes project membership automatically; unbinding a group or deleting it in your identity provider revokes the access it granted.
  • Provisioning removes only access that it created. Manually granted memberships remain intact, and a manual member elevated to Approver by a group reverts to their manual role if they leave the group.
  • An organization can hold up to 200 unique members across its projects. A person it refuses is recorded as a failure in the provisioning events and nothing else changes.
  • Groups grant project roles only, never organization administrator rights. Organization admins can view group bindings and project names without accessing project content.

Who can be provisioned

  • New email at a verified domain: Creates an account with no password.
  • Existing passwordless/managed account (or org requires SSO): Accounts without a password or passkey, accounts already managed by your organization, or accounts at an organization requiring SSO are taken over and sign in through single sign-on.
  • Existing self-managed member: A user who already has their own login and is already a member of one of your organization's projects is linked for access only (unless your organization requires SSO). Provisioning manages their project access without modifying their name, email, or login credentials.
  • Rejected accounts: Accounts with their own login that are not members of any of your projects, accounts managed by another organization, and screenRIG staff are rejected with an explicit reason. Invite an independent user to one of your projects first so provisioning can link them for access.

Deactivation and DELETE

Sending active: false (via PUT or PATCH) and sending DELETE both end a person's access. Sending active: true reverses a deactivation as shown below.

Account typeDeactivation (active: false)DELETE
Managed by your organizationAccount is deactivated by provisioning. Active sessions and dashboard tokens end. Project memberships and the agents they answer for are suspended (not deleted), and group-granted access is removedSame as deactivation, plus the user is removed from provisioning. The underlying account is not erased
Linked for access onlyAccess to your organization's projects and active sessions end: group access is removed, and manual memberships are archived and removed. The user keeps their own account and sign-inSame as deactivation, plus the user is removed from provisioning and archived memberships are discarded
Account typeReactivation (active: true)
Managed by your organizationReinstates the account (only if deactivated by your provisioning). Memberships and the agents they answer for return, and groups grant access again. Sessions and dashboard tokens do not return: the person signs in again through single sign-on. After a DELETE, sending POST for the same email reinstates the account and the next group sync restores group access
Linked for access onlyRestores archived manual memberships, each as it was, in the projects still in your organization, and groups grant access again. An organization at its 200-member limit, or a project at its plan's people limit, refuses one and records a failure. After a DELETE, archived memberships are gone—re-invite the user to a project before provisioning again

Safeguards:

  • Accounts deactivated outside your provisioning (for example, by screenRIG staff) cannot be reactivated via SCIM (active: true returns 400 mutability).
  • Project ownership is never transferred automatically: a linked owner retains access to their owned project, while a managed owner's project remains suspended with their account until reactivation. Transfer project ownership before deactivating an owner if others need to keep managing it.
  • The organization's last remaining administrator cannot be deactivated as a managed user (400 mutability)—assign another administrator first.

Reference

Base URL: https://api.screenrig.ai/scim/v2. Send the token in Authorization: Bearer srscim_TOKEN (a bare token is also accepted). Requests and responses use application/scim+json (application/json is also accepted).

MethodPathNotes
GET/ServiceProviderConfig, /ResourceTypes, /SchemasPATCH and filtering are supported; bulk operations, sorting, ETags, and password changes are not
GET/Users, /GroupsSupports filter, startIndex (1-based), count (default 100, max 200; 0 returns total count only), attributes, and excludedAttributes
POST/Users, /GroupsReturns 201 with Location. Returns 409 uniqueness if userName is already provisioned or displayName duplicates an existing group (case-insensitive)
GET, PUT, PATCH, DELETE/Users/{id}, /Groups/{id}DELETE returns 204. Group PATCH returns 204 (or 200 with the group when attributes or excludedAttributes is requested). Group PUT without members preserves existing members
  • Filters: Up to four attribute eq value clauses joined with and, where value is a quoted string or boolean (true/false for active). Users support userName (case-insensitive), externalId (exact), id, emails / emails.value, displayName, and active. Groups support displayName, externalId, id, and members / members.value. Any other filter returns 400 invalidFilter.
  • PATCH: Accepts both Entra ID and Okta payload styles, with or without ?aadOptscim062020. Operation names are case-insensitive, and booleans accept true, false, "True", or "False". Operations may omit path or use dotted keys ({"name.givenName": "Ada"}). Supported paths include emails[type eq "work"].value, members (add, replace, and remove with a value array), and members[value eq "<id>"] (remove). Attributes screenRIG does not use are accepted and ignored.
  • Rate limits: 600 requests per minute per organization across all tokens (shared across source IPs because Entra and Okta share source addresses). Exceeding the limit returns 429 with Retry-After. Failed authentications are capped at 30 per 10 minutes per IP.
  • Errors: Standard SCIM error envelope including scimType (such as invalidFilter, uniqueness, or mutability):
{ "schemas": ["urn:ietf:params:scim:api:messages:2.0:Error"], "status": "409", "scimType": "uniqueness", "detail": "…" }

Organization settings → User provisioning (SCIM) retains the latest 500 SCIM requests for 30 days, including failure reasons—check there first when diagnosing sync issues.

Troubleshooting

SymptomCause and fix
401Token is incorrect or revoked. Re-paste the token or generate a new one
403Provisioning is turned off in Organization settings
Domain rejection errorThe user's email is not at a verified domain. Check userName/email mappings or verify the domain
409 uniquenessThe userName is already provisioned or a group with that name already exists
400 mutabilityThe user is the organization's last administrator, or someone other than your provisioning deactivated them, which active: true does not reverse
429Organization exceeded 600 requests/minute. The provider retries after Retry-After
Provisioned user cannot sign inThe email provisioned via SCIM differs from the email address sent by SSO
Provisioned user sees no projectsNone of the user's groups are bound to a project yet
User's screen scope did not updateA service client they made is still live (revoke it and the scope applies at the next sync), or access was granted by hand, which provisioning never lowers. Check the recent activity of User provisioning for details
Group changes appear slowlyEntra ID syncs roughly every 40 minutes; use Provision on demand for immediate updates