
久しぶりに新しいサイトにNetlifyCMSを導入し、記事公開時にこのようなエラーが出たのでメモ。
{{< bg >}}
`API_ERROR: Although you appear to have the correct authorization credentials, the organization name organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited. For more information on these restrictions, including how to enable this app, visit https://docs.github.com/articles/restricting-access-to-your-organization-s-data/`
{{< bg-end >}}
### GithubのThird-party accessを変更
Organization の設定を開き、サイドバーからThird-party accessにアクセス、Remove restrictionsで書き込み権限を与えます。

確認アラートが出るので、`Yes`。

`Policy: No restrictions` になっていることを確認し、これで解決しました。

***
詳しい手順は公式ドキュメントに書いてありました。
https://docs.github.cthub/setting-up-and-managing-organizations-and-teams/enabling-oauth-app-access-restrictions-for-your-organization