Org Audit API has all read/write perms in PAT, audit logs not accessible

I have a free trial account with my PAT having all access for Platform Management and I would like to fetch org audit logs, but I used the exact same curl in documentation: Automation Cloud - Get Audit Logs
But I am constantly receiving 401 ( the token does work with groups and robot accounts fetch), attaching the log response

1 Like

@Akii

as per error looks like the pat foes not have PM.Audit scope.

cheers


I did try both from Oauth scopes and PAT the url: /identity_/.well-known/openid-configuration seems to be working fine and groups as well but not audit logs. Can it be something pertaining to only trial accounts?

@Akii

can you confirm the base url and org please..are they correct? no tenant is to be included only org..and base would be cloud.uipath.com

cheers

Hello @Akii

The list of possible reasons why 401 error is observed with PAT is documented here. Please review if in case you haven’t validate this before.

Did check that base url and org are correct though.