# Test and roll out SSO

> Check a pilot account, invitations, recovery and offboarding before a wider rollout.

Source: https://diakrin.com/docs/sso/testing

Run a small pilot after your Diakrin onboarding contact confirms activation. Keep your recovery owner available throughout the pilot.

## Pilot checklist

1. Use a fresh browser session. Open the console, choose **Sign in with company SSO**, and enter an assigned pilot user’s work email.
2. Confirm that the expected company identity provider opens. Complete sign-in and MFA when required by your identity policy.
3. Before this step, the pilot user must already be a member of your organization with the same work email (invite them and wait until they accept). Confirm return to the correct Diakrin console in your organization. Reload and verify that the organization remains available.
4. Give the member a role only in the pilot workspace, or assign only the pilot app. Confirm the member can open it and cannot view unrelated workspaces, other people's apps or another organization’s resources.
5. Test an unassigned identity-provider user. Check that application assignment prevents the new sign-in, where your provider supports that policy.
6. Test an authenticated user who is not a member of your organization. The sign-in must be refused and must not grant access to your organization.
7. Remove the pilot member in Diakrin and retry their previous app and coding-tool connection. Access should be denied by current organization and app authorization.
8. Sign out, sign in again and test recovery with the second owner before expanding the provider assignment.

Record the date, provider, environment, pilot accounts, expected access and actual results. An identity-provider test button alone does not verify the return to Diakrin or app authorization.

## Existing account migration

SSO links to a person's existing Diakrin account; it never creates a second account. The link is made at the first SSO sign-in only when exactly one account has that work email and it is a member of your organization and of no other organization. Roles, app assignments and workspace roles stay as they are.

1. Keep an existing owner signed in in a separate browser profile.
2. Sign in through SSO in a fresh profile with the owner's or member's work email.
3. Confirm the same organization, role, workspaces and apps appear, then reload and check again.
4. If the sign-in is refused, check that the account's email matches and that it belongs to no other organization, then ask your onboarding contact.
5. Keep at least one verified owner, and keep their previous sign-in method until the pilot passes. Do not delete an account as a shortcut to linking identities.

## Broader rollout

Share the console sign-in URL with your team after the pilot passes. Expand the identity-provider assignment in stages. Invite each person to your organization before their first SSO sign-in, and explain that Member access requires an app assignment.

Enforcing SSO for every console session is not available. If your company requires it, resolve that requirement with Diakrin before rollout; assigning an SSO application does not enforce it on alternate sign-in methods. Company apps can require SSO through the [sign-in floor](/docs/app-signin#set-the-sign-in-floor). To automate joiners and leavers, add [SCIM provisioning](/docs/provisioning) after the pilot.

## Certificate renewal and offboarding

Tell your Diakrin onboarding contact before rotating a signing certificate or changing metadata. Agree a change window, update the existing connection and retest the pilot. Changing the IdP Entity ID can create a new identity boundary and requires a migration review.

When an employee leaves, remove their Diakrin organization membership and app grants as well as their identity-provider assignment. With [SCIM provisioning](/docs/provisioning), deactivating the person in your identity provider removes their membership for you. IdP disablement can block future sign-ins while an existing session remains valid. Do not rely on it for immediate Diakrin revocation.

Diakrin sign-out does not guarantee logout from your identity provider or every company application. See [Manage access and security](/docs/security).
