Retrieve tokens value

Hi is there any chance to retrieve tokens value that has been generated ?
and for administrator user is there’s a default token generated from fresh installed sonarqube?

Hi,

with the web api /api/user_tokens it’s only possible to list, create, and delete a user’s access tokens.
Otherwise that would be a security problem.
Also the token value is only visible at creation time in Sonarqube web ui, afterwards it’s impossible.
But you can access it in the settings of the Sonarlint plugin configuration if the token is used there.
There’s no default token generated for the builtin admin user.

Gilbert

Hi,

Thanks Gilbert , then i just revoke the old token.
thanks for your help