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:
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 LinkedIn
Quick Share: Your custom post text has been copied to your clipboard! Click the button below to open LinkedIn's share dialog, then paste it.
š” Tip: LinkedIn will open in a new tab. Use Ctrl+V (or Cmd+V on Mac) to paste your text.
Note: LinkedIn will show the article preview. You can add your custom text above it.