Limiting scope of Access Tokens

Hi,

We have scenario where audit logs from SonarQube Cloud (Enterprise) need to be shared with another team.

Is there a good, secure way to share auth token with them. I don’t want to share token from any of the admin accounts.

I checked new Organization Scoped tokens but they did not work and any way we need logs from all orgs.

I would love to see Enterprise Scoped (read only) tokens for automating administrative tasks or be able to limit scope of personal access tokens like it can be done with org scoped tokens.

Thank You in advance for all you ideas.

Krzysiek

Hey @krzysztofdrozd, yes, you are right, Scoped Organization Tokens won’t work for this (they’re not meant for administrative work or for Enterprise-level APIs). The only way you can query audit logs today is with an fully-fledged admin account token.

The idea of impersonal, scoped, enterprise-level tokens might be interesting, I’m going to flag this for the PMs to check out. Or perhaps they have some other feature in the roadmap which could help your use case.