Locked out of project administration

General Information:

  • Billing Plan used Team
  • ALM used Azure DevOps
  • CI system used Azure DevOps
  • Languages of the repository Python

Problem

We locked ourselves out of a project in our sonarcloud organizations by removing any administer permissions by accident. This leads to the problem that no one is able to make administrative changes to this project.

Steps to reproduce

Disclaimer: Please be cautious, these steps may result in a support case when reproducing.

Go to into your project under administration and then permissions. Delete any Administer permission that is present. After that nobody should be able to access the permission menu.

Potential workaround

For everyone who is using the Enterprise plan the project management page could be a solution to this problem.

Hey there.

An organization admin can use POST api/permissions/add_user to restore access the project.

Some documentation on how to use the Web API can be found here.

What this looks like is an API call like:

curl --header 'Authorization: Bearer MY_TOKEN' -X POST 'https://sonarcloud.io/api/permissions/add_user?projectKey=PROJECT_KEY&login=LOGIN&permission=admin&organization=ORG_KEY'

Replacing MY_TOKEN, PROJECT_KEY, LOGIN, and ORG_KEY with the right values. Your login will be found under My Account

We recognize that we need a better solution since, in shifting around features between Team/Enterprise, we left users without the button to restore access. I’ll follow up on this.

1 Like

Hello @BRP and welcome to the community!

Thank you for raising this. I just want to let you know that we are thinking of a better solution to restore access for organization admins on projects. If this is interesting to you, please let us know here: Productboard

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