Who is the project admin for a given project?

Hiya,
The admin who configured our sonar cloud recently left, he gave me full account admin permissions before leaving, but I and others with the same access rights cannot access the full project level admin permissions.

According to this post there are additional admin level permissions on any given project that we need access too, but we have no way of know who, if anyone, has that admin role within the org.

How can I tell who has the admin permissions? Is it possible for a project to not have an Admin, if so what should I do?

Thanks

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

1 Like

Hi,

Welcome to the community and to SonarCloud!

How many projects are we talking about? And do you know what plan you’re in? Whether it’s Team or Enterprise? Under the Administration menu item, is there a ‘Projects Management’ option?

It’s possible to be an Org admin and not have permissions to Browse or administer a project. However, as an admin, you should still be able to get a full list of projects, either on the Projects Management page or via the API.

One option would be to create a new Permission Template that gives e.g. you project admin and then apply that to all the projects. However, you should be extremely cautions with that (i.e. don’t do it) because applying a template is not additive. You will wipe out all existing permissions and replace them with only what’s in your template.

So instead of going the template route, it’s probably best to edit the permissions of each project individually (scripted with the APIs) to give yourself and / or your designees Browse and Administer on all the projects and go from there.

From there, you’ll certainly be able to see every project and check out the existing permissions to make sure they’re set appropriately.

 
HTH,
Ann

Thanks Ann,

We have 52 projects currently, and i suspect we’ve gotten into a state where most of these projects have no project admin now. I’ll look into the API route first that definitely sounds safer.

I don’t see a ‘Project’s management’ under my admin, and we’re using a team plan.

Hi,

Okay, then you’ll have to use the API. If you have specific questions about usage, feel free to create new threads. And good luck.

 
:+1:
Ann

Hi Ann, I work in the same team as Daniel and have pretty much all permissions at organisation level, but I don’t see “Projects management” under my Administration either.

One option would be to create a new Permission Template that gives e.g. you project admin and then apply that to all the projects.

I have tried creating a new permission template, but I couldn’t find an option to “apply that to all the projects”.

So instead of going the template route, it’s probably best to edit the permissions of each project individually (scripted with the APIs)

Can you please clarify which API endpoint I should use for this? I have reviewed the API documentation here: SonarCloud, but I couldn’t identify an endpoint that matches this use case.

Thanks for your help.

Hi @Coby_Zeng,

Welcome to the community!

You’re on the Teams plan, so it’s expected that neither of you sees the Projects Management page.

That’s on the page you can’t see. You could also do it via the APIs. But it’s really not the best idea.

Here you go:

https://sonarcloud.io/web_api/api/permissions/add_user?deprecated=false&section=params

 
HTH,
Ann

Thanks Ann. Using API has worked.

1 Like