What problem are you observing?
I have created an API Token and I have gave it the permission of sp:scopes:all
(as instructed in Remove Account API + API Token Scope )
The call to delete-account-async | SailPoint Developer Community fails with HTTP 403 Forbidden.
{"detailCode":"403 Forbidden","trackingId":"da91d8e6791b4ce78128b625a07b67d7","messages":[{"locale":"en-US","localeOrigin":"DEFAULT","text":"The server understood the request but refuses to authorize it."},{"locale":"und","localeOrigin":"REQUEST","text":"The server understood the request but refuses to authorize it."}],"causes":[]}
The call succeeds if I use a Personal Access Token (PAT), as an admin with sp:scopes:all
What is the correct behavior?
I may have missed it, but I don’t find in the documentation where it is mentioned that we need to create a PAT and we can not use an API Key:
So I think either the documentation is wrong/incomplete, or the API doesn’t accept a valid API token.
What product feature is this related to?
ISC
What are the steps to reproduce the issue?
- Create an API Key with scope
sp:scopes:all
- Use the API token to call the endpoint delete-account-async | SailPoint Developer Community for a random account
- Check that the response is 403 and the request failed. The account is still present on the identity.
Do you have any other information about your environment that may help?
No.