Jon Gallant

Solution to GitHub CLI 'GraphQL error: Resource protected by organization SAML enforcement. You must grant your OAuth token access to this organization.'

1 min read

Ran a gh clone today and got this:

Terminal window
GraphQL error: Resource protected by organization SAML enforcement. You must grant your OAuth token access to this organization.
```text
Fixed it by running:
```bash
gh auth refresh
Share:
Share on X