I am building my first workflow that will make an API call. I have followed the guidance provided by @kirby_fitch in hist tutorial Using Workflow’s HTTP Request Action to Work With IdentityNow APIs - Identity Security Cloud (ISC) / ISC Show and Tell - SailPoint Developer Community Forum, but when I test the workflow, the HTTP request call fails and I do not see how to get the failure code. When I search for the event it says:
Status: FAILED
Actor: System
Target:
Name: Use Personal Access Token Failed
cause: blocked
scope: [“idn:access-profile:read”,“idn:access-request-approvals:read”,“idn:access-request:read”,“idn:application:read”,“idn:entitlement:read”,“idn:requestable-objects:read”,“idn:role-unchecked:read”,“idn:tag:read”,“sp:scopes:all”,“sp:search:read”,“sp:workflow-execute:external”]
I have been adding scopes hoping that was the problem, until I finally added sp:scopes:all, but no dice.
The results shown in the workflow test is as follows:
{
"authenticationType": "OAuth",
"basicAuthPassword": null,
"basicAuthUserName": null,
"csvRequestBody": null,
"formRequestBody": null,
"headerAuthName": null,
"headerAuthValue": null,
"jsonRequestBody": null,
"method": "get",
"oAuthClientId": "**name changed to protect the innocent**",
"oAuthClientSecret": "**removed**",
"oAuthCredentialLocation": "oAuthInHeader",
"oAuthScope": null,
"oAuthTokenUrl": "https://sci.api.identitynow.com/oauth/token",
"requestContentType": "json",
"requestHeaders": null,
"suppliedInlineExpression": {
"url": "https://sci.api.identitynow.com/v3/tagged-objects/ENTITLEMENT/{{$.trigger.id}}"
},
"textRequestBody": null,
"url": "https://sci.api.identitynow.com/v3/tagged-objects/ENTITLEMENT/a2bbefb4604847b6a694d4f41575af14",
"urlParams": null
}
The URL appears to work in Postman, but Postman is using a different client id.
Any thoughts? Also, if I change the scope after the PAT is generated, does that alter the permissions, or will the PAT only ever have the permissions it had when it was generated?