Enterprise SAML Lockouts: How to Regain Access Quickly 🔐 #155840
github-staff
started this conversation in
Discover
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problems with your Identity Provider (IdP) may cause yourself and users to be completely locked out of your enterprises and the organizations within it. If you are locked out of your Enterprise, it is possible to access it again through these methods, from fastest to slowest:
Using your Recovery Codes
Recovery codes are the fastest method of recovering your enterprise from a SAML lockout. These codes are shown to the enterprise owner who configured SAML, or in the case of an Enterprise Managed Users (EMU) enterprise, the
setup user
. We strongly encourage that these codes are saved before switching on SAML. If you don't think you have the recovery codes, they may actually be in fact saved somewhere, like a file name that contains the namerecovery
, in backups or entries in password managers.To use a recovery code for non EMU enterprises:
To use a recover code for an EMU enterprise:
Sign in with your
setup user
username and password. Thesetup user
has a username format ofEMU-SHORTCODE_admin
.Retrieving your enterprise recovery codes through an API query.
If you do not have a local copy of recovery codes, an enterprise owner may be able to retrieve recovery codes by creating a Personal Access Token (PAT) with the scope
read:enterprise
using the following GraphQL query:NB: For GitHub Enterprise Cloud with data residency: change the
POST
URL tohttps://api.ENTERPRISE_SLUG.ghe.com/graphql
.The above query can also be executed via curl if you do not wish to use an API client (replace
<TOKEN>
with your PAT):Contacting support to unlock your enterprise.
In cases where recovering access to your enterprise is not possible, you will need to open a support ticket to request SAML configuration to be removed from your enterprise. We need the following to disable SAML for your enterprise account:
To reduce the amount of time required to turn over an unlock request, make sure enterprise owners are prepared as above. In cases where another enterprise owner cannot access the support portal, please CC their verified email address on the email chain.
Beta Was this translation helpful? Give feedback.
All reactions