Permissions issue with user admin when Creating/Editing a Portfolio in SonarQube

Hi,

The SonarQube is Enterprise Edition 10.5 with SAML authentication enabled.

I am encountering a permissions-related issue in SonarQube when attempting to create or modify a Portfolio using an administrative account.

Specifically, when I click on Edit Definition, SonarQube redirects me to the login screen and displays the error shown in the attached screenshot (see image).
This behavior occurs despite using an admin account with full administrative privileges, so it is unexpected and unusual for SonarQube to report a permissions error in this context.

To investigate further, I enabled DEBUG and TRACE logging levels on the web server but did not find any additional insights or errors that could help pinpoint the problem.

Could you please advise on the steps I should take to troubleshoot this issue? Additionally, I would appreciate any clarification on why this might be happening and how to resolve it.

Thank you for your support. I look forward to your guidance.

Best regards,
Manuel

1 Like

I have exactly the same issue from web console.
If I use webapi I have following error when I try to delete an existing portfolio:

image

I’m using a User Token for Administrator user for this api test that is already having grants

HI @Manuel_95 , @fabio.bazzani ,

Thanks for the detailed explanation of the issue. It seems you’re encountering a permissions-related problem with SonarQube’s Portfolio feature, despite using an administrative account.

Based on your description, it appears that the issue might not be directly related to your admin privileges within SonarQube. While being an administrator generally grants broad access, in SonarQube it doesn’t automatically mean you can access all projects, applications, or portfolios. It’s possible that the specific Portfolio you’re trying to access has restricted permissionsfor sonar-administrator.

To troubleshoot this further, I recommend following you can Verify Portfolio Permissions: Go to Administration → Projects Management and navigate to the specific Portfolio you’re trying to access. Check the permission settings for that Portfolio to see if there are any restrictions t. You might find that certain users or groups have been granted specific permissions, limiting your ability to modify the Portfolio definition.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.