Authorization: Integration User
To access the Agentforce IT Service Configuration Management Database (CMDB) GraphQL API, you must authenticate using an Integration User via a standard OAuth 2.0 flow.
You must have administrator access to your Salesforce org to create Integration Users and Connected Apps.
-
Log in to your Salesforce org as an administrator.
-
Create a dedicated User record with the Salesforce Integration User License.
-
Assign the Integration User to a Permission Set that includes at least one of the following permissions. These permissions determine what data you can access via the API:
ItsrvcCnfgItmTypMgrItsrvcCnfgItmOwnerItsrvcCnfgItmRead
-
Create a Connected App (also known as an External Client App) and retrieve your OAuth credentials (Client ID and Client Secret). For detailed instructions, see Authorization Through Connected Apps and OAuth 2.0.
-
Generate a Bearer Token by exchanging your client credentials for an access token.
Send a POST request to the OAuth token endpoint:
The response includes an access token:
Use the
access_tokenvalue in theAuthorizationheader of your CMDB GraphQL requests.
See Also