Controlling SSO provisioning and role restrictions in Shuffle

How to decide whether SSO creates Shuffle users automatically, blocks users without an assigned role, enforces SSO for a tenant and handles usernames that arrive as IDs.

On this page

Controlling SSO provisioning in Shuffle: when SSO should create users

Whether SSO should create a Shuffle account the first time someone signs in is a separate decision from what that person is allowed to do once inside. Security teams often blur the two, then discover that a user was created automatically with more access than intended. Decide first who may hold an account at all, then decide how a role is assigned to that account, and only then decide whether an identity provider login alone is enough to get in. Shuffle's SSO support covers SAML, added in version 0.9.16, and OpenID Connect, added in 1.0.0, available both on-premises and in Shuffle Cloud, with per-tenant SSO enforcement. The documented capabilities are a starting point, not a specification of how a new login is handled.

Exact provisioning behavior must be confirmed against the version you deploy and the current configuration docs before you design around it. Ask four questions of the running instance: whether a first-time SSO login creates a user record, which role that record receives by default, whether a login with no role assignment is refused or admitted with minimal rights, and whether the tenant can require SSO so that local password logins are no longer accepted. Test each answer with a dedicated account from your identity provider that has no group membership, a second account with a restricted group, and an account you will later deactivate. Record the results in your change ticket. Shuffle's configuration docs, linked below, are the place to confirm the current settings for your release.

If the answers are not what your policy requires, plan the control outside the default path rather than assuming it will hold. Keep automatic creation limited to a known group in the identity provider, document who owns that group, and review it on the same cadence as your other access reviews. Require SSO for the tenant only after a tested fallback administrator exists, so a broken provider configuration does not lock out every operator. Where Shuffle offers only coarse roles, record which functions you cannot separate in your access model so the risk is accepted by a named owner instead of discovered later.

Provisioning and access options and when each fits

This table compares four ways to control who gets into a Shuffle tenant through SSO: auto-creating users, pre-creating them, blocking users without a role, and enforcing SSO per tenant. Read each row for the risk it reduces, the admin work it adds, and what to confirm in the docs before you choose a combination.

OptionRisk it reducesAdmin work it addsQuestions to confirm before choosing
Auto-create users on first SSO loginManual onboarding delay and tickets for new staffSomeone must review who was created and remove accounts that should not exist; roles may default to a level you did not intendWhich role a new SSO user receives by default, and whether a role claim from the IdP can change it at first login
Pre-create users manuallyUnknown accounts appearing in the tenant; uncontrolled first-login accessEvery joiner needs an entry before first sign-in, which adds a step to onboarding and a dependency on the admin teamWhether the username must match the IdP email or subject exactly, and what happens when the sign-in name differs
Block users without an assigned roleSigned-in users getting access simply because they authenticatedRequires a role source in the IdP or a mapping step, plus a process to fix users who are blocked by a missing groupWhether Shuffle can deny login when no role claim is present, and which error the user sees
Enforce SSO for a tenantPassword or local-account logins bypassing the IdP and its MFA and deprovisioningBreak-glass admin accounts must be planned, tested and stored safely; locked-out users need a documented recovery pathWhether enforcement applies per tenant, how local admin accounts are handled, and who can turn enforcement off
Handle usernames that arrive as an IDAudit trails showing opaque IDs instead of people, and duplicate accounts after a claim changeMapping rules must be set and tested, and existing accounts may need reconcilingWhich claim Shuffle uses as the username, and whether changing the claim creates a new user

How to set up provisioning and role rules in order

This sequence moves a Shuffle tenant from an open SSO login to one where only the right people can sign in, land in the right role, and are blocked when they should be. Each step ends with a check so problems surface before SSO becomes mandatory.

  1. Inventory who needs Shuffle access

    The security automation lead and the identity team list every group that should reach Shuffle, the role each group needs (Admin, User or Reader), and the people who must be excluded, such as contractors or leavers. Keep the list in a shared document that names the owner of each group in the identity provider. Done means every group has one target role and one owner, and anyone without a role has been named explicitly. Confirm the role definitions against the current Shuffle user roles documentation before you map anything, because the role model is limited and changes between releases.

  2. Confirm the identity provider claims

    Sign in with a test account at the identity provider and inspect the ID token or SAML assertion that Shuffle will receive. Record the exact claim that carries the username and confirm it is a human-readable value such as an email address, not an opaque ID or subject identifier. Record the claim that carries group or role membership and its exact name and format. Done means you have a written sample of each claim for one test user, and you know whether the username field must be changed at the provider before Shuffle can match accounts. Check the Shuffle extensions documentation for which claims the SSO integration reads.

  3. Decide create-on-login or pre-provisioning

    Choose whether a first successful SSO login creates a Shuffle user automatically, or whether an administrator must create the account in Shuffle before the user can sign in. Create-on-login is faster to run but lets any user who can authenticate at the provider receive an account, so it only fits when the provider already restricts who can sign in to the application. Pre-provisioning keeps Shuffle's user list as the gate but adds an administrative step for every joiner. Record the decision, the owner who approves it, and how leavers will be removed. Done means the decision is written down and matches the access inventory from the first step.

  4. Set role mapping and default-deny rules

    Map each provider group to one Shuffle role, and configure the provider so that users outside every mapped group receive no role or are not assigned to the Shuffle application at all. Avoid a fallback that gives unmapped users the User role. Confirm how Shuffle behaves when a user has no role claim and make sure the outcome is a denied or inactive account, not a default role. Done means the mapping table is saved in configuration review, and you can explain in one sentence what happens to a user in no group.

  5. Test with a non-admin account first

    Sign in with a test user who holds only the User role at the provider, then with a Reader test user. For each, confirm the Shuffle role shown matches the mapping, that the user cannot open admin settings, and that the username displayed is the expected value rather than an ID. Repeat with a user from a group that should be blocked. Done means every test account lands in the expected state and the results are recorded with timestamps and account names. Keep at least one administrator session open during testing so a misconfiguration can be reversed.

  6. Check the blocked user path

    Attempt sign-in with an account that has no mapped role, a disabled account, and a leaver whose Shuffle account still exists from a previous login. Confirm each is refused or inactive, that no workflows or credentials are visible, and that the attempt appears in the audit or log output your team reviews. Done means the blocked cases fail in the way the default-deny rule intends, and you have a list of any accounts that unexpectedly succeeded, which must be fixed before the next step.

  7. Enforce SSO per tenant after a rollback path exists

    Only after the previous steps pass, turn on SSO enforcement for the tenant. Before you do, write down the rollback: the local administrator account you will use, where its credentials are stored, and the setting that removes enforcement. Confirm that the emergency account can sign in with enforcement enabled before you rely on it. Then sign in once more as a standard user and as an administrator. Done means enforcement is on, the rollback was rehearsed, and both test logins succeed. Revisit the SSO configuration whenever Shuffle changes its SSO or role behavior in a new release.

Handling users whose username arrives as an ID

The main risk here is that an identity provider may send an opaque subject identifier, such as a long string or GUID, in the field Shuffle reads as the username, instead of a readable email address or login name. Many providers do this by design. The sub claim is meant to be a stable, unique key for a user, and it can stay the same even when a person's email or display name changes. Shuffle needs a human-readable identity for each account, so a mismatch between the claim it reads and the claim your provider populates can create accounts that look wrong or cannot be matched to anyone.

The typical failure is a duplicate. A user signs in once and gets an account named after an ID. Later, an admin creates or invites the same person by email, or the same person signs in through a different login path, and a second account appears. Roles assigned to one record do not follow the other, so the user either loses access or keeps access through an account nobody reviews. Before you allow automatic user creation, check which claim Shuffle reads for the username and email, whether the provider sends the email claim only when a scope is requested, and whether the email is marked verified. Then sign in with a test account and compare the stored user record with the claims your provider actually issued.

Confirm every claim name with your chosen provider and the Shuffle version you run, because claim names and mapping options change between releases and between providers. Decide in advance which attribute is the account key, and document it so that role mapping and deprovisioning use the same identifier. If you cannot get a stable, readable identifier from the provider, plan a cleanup step for existing duplicate accounts and test how a leaver's account is disabled, since a record that is keyed on an ID is harder to find during an access review.

Security risks of loose provisioning and how to reduce them

Automatic account creation, default roles and enforced sign-in each widen who can reach Shuffle and how long they keep access. The cards below pair each risk with a control you can set up before the first user signs in, so that identity changes stay deliberate and a lockout never leaves you without a way back in.

Unintended auto-created accounts

If SSO creates a Shuffle user on first sign-in, anyone your identity provider authenticates can get an account, including contractors, test identities and accounts that were never meant for this platform. Check which groups or domains your identity provider releases to Shuffle, and confirm with a test user from outside the intended population that no account appears. Decide whether provisioning should be open, limited to an assigned group, or disabled so that an administrator creates users by hand.

Shuffle SSO docs

Admin rights granted by default

A new user who lands with a broad role can edit workflows, read stored credentials through apps, or change tenant settings from the first login. Require that a role is assigned before access is granted, and do not map an identity provider group to the admin role without a named approver. Record who approved each role grant so the decision can be traced during an access review.

Stale users after someone leaves

SSO controls sign-in at the identity provider, but a Shuffle account can remain active in Shuffle's own user list after the person has left or changed teams, particularly if the identity provider is disabled without a matching Shuffle change. Write a deactivation step into the leaver process that covers both systems, and confirm in a test that a disabled identity provider account cannot start a new session. Review the active user list on a fixed schedule.

Lockouts from enforced SSO

Requiring SSO for a tenant means that a misconfigured redirect URI, an expired signing certificate or a changed provider endpoint can stop every administrator from signing in. Before you enforce SSO, confirm a working sign-in path for at least one administrator and test the full login from a clean browser session. Keep the change window short and record the rollback steps before you start.

Loss of local admin access

Once SSO is the only way in, a broken identity provider leaves no one able to change the Shuffle configuration. Keep a break-glass local administrator account, store its credentials in a sealed location with two-person access, and test the login path in advance rather than during an incident. Confirm that the account still works after an SSO change, and log each use.

Credential loss during auth changes

Shuffle encrypts saved app credentials and API keys with the SHUFFLE_ENCRYPTION_MODIFIER secret, so changing or losing that value during an authentication change breaks every saved app authentication. Where your change touches stored app credentials, back up the current value before you start, keep it unchanged, and confirm that a saved app connection still runs after the switch. Store the value in your secrets manager, not in a configuration file in a shared repository.

Shuffle configuration docs

Questions teams ask before configuring Shuffle provisioning

Can our own team configure SSO provisioning and role restrictions in Shuffle?

Yes, if you have someone who administers both Shuffle and your identity provider and can test logins end to end. The work is configuration rather than code: you decide whether SSO creates users on first login, which claims or groups grant access, whether users without an assigned role are blocked, and whether a tenant requires SSO. The harder part is the identity provider side, where group or role claims must reach Shuffle in the form it expects. Shuffle documents SAML and OpenID Connect support in its extensions documentation, so start there and confirm the exact settings against your Shuffle version.

What drives the effort of this work?

Effort follows a few variables that you should measure before asking for a quote:

  • The number of identity sources, such as one workforce directory or several directories plus customer or partner logins
  • The role model, meaning how many distinct Shuffle access levels you need and how cleanly they map to existing groups
  • The number of tenants, since each tenant can carry its own SSO and enforcement settings
  • The identity provider, because some providers make role or group claims easy to emit and others need extra mapping

Each added source, tenant or role pattern adds configuration and test cases.

How long does a pilot take?

A pilot length depends on scope, and no fixed duration applies to every environment. A pilot with one identity provider, one tenant and a short role list is narrower than one covering several sources, multiple tenants and automatic provisioning. Ask for the pilot's scope, the test cases it covers and the environments it runs in, then agree on the timeline in writing before work starts. Most engagements are fixed-scope, so the timeline is part of the written agreement rather than an estimate made later.

What do we need to provide before the work starts?

Plan to provide three things:

  • Administrator access to your identity provider, with rights to create applications, read group or role assignments and change claim mappings
  • A written list of the Shuffle roles you intend to use, and which directory groups should map to each one
  • Test accounts for each case that matters: an assigned user, a user with no role, a leaver, and a user whose username arrives as an ID rather than an email address

Access to a non-production Shuffle instance is also needed so changes can be tested before they reach production.

What would an outside partner deliver?

A partner working from a written scope typically delivers the configured SSO connection for each identity source, the role mapping and provisioning rules agreed in the scope, tests for the access cases you named, and documentation your operators can follow later. If the scope includes it, the partner also tests how the configuration behaves under the cases that cause lockouts or over-broad access. Ask for the deliverables to be listed by name in the statement of work, including who holds the configuration files and test records at handover.

How does cost follow from the written scope?

Cost follows the scope: the identity sources, tenants, roles and test cases you agree in writing. DeployOpen does not publish a price list, so a quote is produced from the written scope rather than from a standard rate. Ask the quote to separate one-time work, such as the initial configuration and testing, from recurring work, such as retainers for ongoing support and upgrades. Also ask which items change cost if the scope grows, for example adding a second tenant or moving from SAML to OpenID Connect later.

Will automatic provisioning create users who should not have access?

It can, if the provisioning rule accepts any authenticated user from the provider. The safer pattern is to block users who arrive without an assigned role, so an account is created only when the identity provider asserts a role you have approved. Test this with a user who has no role and confirm that Shuffle refuses the login or leaves the account inactive, as your version behaves. Also check how a removed role or deactivated identity is reflected on the next login and in existing sessions.

How an SSO login reaches a Shuffle role decision

The flow starts with a user signing in at the identity provider, which returns an ID token or SAML assertion to the self-hosted Shuffle backend. The backend reads the claims, then checks the tenant SSO setting and the provisioning rule before it either assigns a role or blocks the login. The trust boundary sits between the provider and the backend, so check what claims the provider actually sends and confirm that the username and role claims match what Shuffle expects before any user is created.

Login path from the identity provider through Shuffle's provisioning and role checks.

What changes for your team after the rules are set

Once the provisioning mode and role rules are set, the work moves from design to ownership. The first recurring duty is joiner and leaver handling. Decide who approves a new user's role in the identity provider, who removes access when someone leaves, and how fast that removal must happen. Because Shuffle's role model is limited (see the role section on this page), access removal depends on the identity provider group or claim being changed and on the Shuffle user being deactivated or unassigned. Test that path for a leaver before you rely on it, and confirm in your own tenant what happens to a user's saved workflows and owned items when the account is disabled.

Next, schedule a periodic review of who holds the Admin and builder roles. Export the user list from your identity provider and compare it with the Shuffle users and roles in each tenant. Look especially for accounts that gained a privileged role through a group change and were never reviewed, and for service or integration accounts that were created by hand and sit outside SSO. Set the review interval with your security team. The review is only useful if someone is named as the owner and the result is recorded.

Make every change to provisioning or role rules in a non-production tenant first. Sign in with a test account for each role, confirm that users without a role are blocked, and confirm that SSO enforcement does not lock out the local administrator you need for recovery. Keep that recovery path documented and tested. Finally, write down the chosen provisioning mode, the role mapping source, the enforcement setting per tenant and the date each was last reviewed. Auditors and security reviewers will ask how a user got access, and a written record that matches the configuration is the simplest answer. Confirm with your Shuffle release notes which version your configuration was tested against, since behavior can change between releases.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.