Getting a 403 error when running "sail conn logs"

My PAT already has the sp:scopes:all permission but I am still unable to see logs in my connector customizer. I double-checked that the customizer is built exactly as instructed in the guide here: Connectivity Customizers | SailPoint Developer Community

It is linked to the connector, and running Test Connection threw no errors. What am I missing here?


CLI error.png

Hello,

403 Errors point to problems with authentication. Jump to the InsufficientPermissionError section for some assistance:

https://developer.sailpoint.com/docs/connectivity/saas-connectivity/in-depth/error-handlinghttps://developer.sailpoint.com/docs/connectivity/saas-connectivity/in-depth/error-handling

Hi @jiajimwu I was able to get access to the internal logs with the trackingId you provided and got 1 more bit of debug to share with you:

identity [GUID] is missing required rights: [sp:connectivity-logs:read], JWT has following capabilities: [sp:user ORG_ADMIN] and scopes: [FAAMAPgBAGCAGQAIAAAMQA8AAAABbAAEAgAAAAAAAAAAQAAAUA==] In summary, from the internal logs, it looks like the token is not from the ALL scope. There are a few options at this time:a.) Further investigation: work with AMS service owner to help you identify why the caller does not have enough rights. b.) Further test: Try the same PAT in a different context, like a script or Postman. Does this work, or does it also return a 403 error?c.) Possible solution: Did you configure the CLI tool for PAT authentication as described here? d.) Possible solution: recreate the PAT with JUST the scopes:all. You don’t also need to include the default scope. Does this work for you in the context of the CLI tool? I know many times I’ve generated a PAT, everything looked ok with the required scopes, and it returns an error. I can’t explain why, but recreating the PAT sometimes resolves odd issues for me.