「管理者承認ユーザーに対して、API アクセスを許可リストに登録された接続済みアプリのみに制限する」設定が有効になっている場合、Developer Console にアクセスすると、「このセッションは REST API での使用には無効です」というエラーが表示されることがあります。
このエラーを再現する手順:
「管理者が承認したユーザーのみ、許可リストに登録された接続アプリへの API アクセスを許可する」設定の目的に照らすと、この挙動は仕様どおりの動作とみなされます。 Developer Console は REST API を基盤として動作しています。そのため、REST API は この設定によってブロックされる API 種別に含まれています。
回避策の 1 つは、プロファイル権限「任意の API クライアントを使用する」を有効にして、適切なユーザーにプロファイルを割り当てることです。
注: この操作により、すべてのアプリの使用も許可されます。
長期的に見ると、Developer Console はメンテナンスのみの状態にあり、Salesforce は重大なセキュリティ問題の修正以外の変更を行っていないため、この挙動が変更される予定はありません。
Salesforce では、可能な限り Salesforce CLI、VS Code、Salesforce Code Builder といった最新の開発者ツールに切り替えることを推奨しています。
004637119

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.