One important detail is that I am attempting this process with approximately 150 repositories.
When I close the window and return to the main screen, I see that the token is actually created. However, since I do not receive the token, we are unable to proceed.
When I tried the same process with just 1 or 2 repositories, it worked as expected. Ideally, I would like to generate the same token for all 150 repositories to avoid additional administrative overhead. Kindly help
I am encountering an issue when trying to create a new Organization Scoped Token in our SonarCloud organization
When I create a token scoped to a single project, the token is created successfully.
However, when I try to create a token with a project scope including ~70 projects (and setting expiration to 1 year), I consistently get an “Internal server error” (HTTP 500).
This strongly suggests there is an internal limitation on either the number of projects allowed in a single token scope or the payload length of the request. The UI/API does not provide a validation error, only a generic 500.
Steps to Reproduce:
Navigate to Organization Settings → Security → Tokens.
Click Generate Token.
Set scope = Execute Analysis.
Add a large number of projects (around 71).
Set expiration to 1 year (Any expiration period).
Click Generate → receive “Internal server error”.
Expected Behavior:
Either the token should be created successfully with all selected projects, or
A clear validation message should be displayed (e.g. “Max 50 projects per token”).
It appears to be functioning correctly now. I have successfully created a token with a project scope that includes all 71 projects. Thank you for your assistance.