content/manuals/enterprise/troubleshoot/troubleshoot-sso.md
This page describes common single sign-on (SSO) errors and their solutions. Issues can stem from your identity provider (IdP) configuration or Docker settings.
If you experience SSO issues, check both Docker and your identity provider for errors first.
For further troubleshooting, check your IdP's documentation or contact their support team.
When this issue occurs, the following error message is common:
Some of the groups assigned to the user are not formatted as '<organization name>:<team name>'. Directory groups will be ignored and user will be provisioned into the default organization and team.
<organization>:<team>. If the groups assigned to a user do not follow this format, they will be ignored.To replicate this issue:
Update group names in your IdP:
<organization>:<team>When this issue occurs, the following error message is common:
User '$username' is not assigned to this SSO organization. Contact your administrator. TraceID: XXXXXXXXXXXXX
Enable JIT provisioning
JIT is enabled by default when you enable SSO. If you have JIT disabled and need to re-enable it:
Manually invite users
When JIT is disabled, users are not automatically added to your organization when they authenticate through SSO. To manually invite users, see Invite members
Configure SCIM provisioning
If you have SCIM enabled, troubleshoot your SCIM connection using the following steps:
When this issue occurs, the following error message is common:
IdP-Initiated sign in is not enabled for connection '$ssoConnection'.
Docker does not support an IdP-initiated SAML flow. This error occurs when a user attempts to authenticate from your IdP, such as using the Docker SSO app tile on the sign in page.
Authenticate from Docker apps
The user must initiate authentication from Docker applications (Hub, Desktop, etc). The user needs to enter their email address in a Docker app and they will get redirected to the configured SSO IdP for their domain.
Hide the Docker SSO app
You can hide the Docker SSO app from users in your IdP. This prevents users from attempting to start authentication from the IdP dashboard. You must hide and configure this in your IdP.
When this issue occurs, the following error message is common:
Not enough seats in organization '$orgName'. Add more seats or contact your administrator.
This error occurs when the organization has no available seats for the user when provisioning via Just-in-Time (JIT) provisioning or SCIM.
Add more seats to the organization
Purchase additional Docker Business subscription seats. For details, see Manage subscription seats.
Remove users or pending invitations
Review your organization members and pending invitations. Remove inactive users or pending invitations to free up seats. For more details, see Manage organization members.
When this issue occurs, the following error message is common:
Domain '$emailDomain' is not verified for your SSO connection. Contact your company administrator. TraceID: XXXXXXXXXXXXXX
This error occurs if the IdP authenticated a user through SSO and the User Principal Name (UPN) returned to Docker doesn’t match any of the verified domains associated to the SSO connection configured in Docker.
Verify UPN attribute mapping
Ensure that the IdP SSO connection is returning the correct UPN value in the assertion attributes.
Add and verify all domains
Add and verify all domains and subdomains used as UPN by your IdP and associate them with your Docker SSO connection. For details, see Configure single sign-on.
When this issue occurs, the following error message is common:
We couldn't find your session. You may have pressed the back button, refreshed the page, opened too many sign-in dialogs, or there is some issue with cookies. Try signing in again. If the issue persists, contact your administrator.
The following causes may create this issue:
Do not disrupt the authentication flow
Do not press the back or refresh button during sign-in.
Restart authentication
Close the browser tab and restart the authentication flow from the Docker application (Desktop, Hub, etc).
When this issue occurs, the following error message is common:
The name ID sent by the identity provider is not an email address. Contact your company administrator.
The following causes may create this issue:
In your IdP, ensure the Name ID attribute format is correct:
EmailAddress.