I need help in downgrading my plan to free in SonarQube Cloud. I am an admin and have access using github login. When I go to the admin page I get this response:
Select a new plan for ‘Intellicheck’
‘Intellicheck’ was removed from its enterprise and no longer has an active plan. Your last attempt to downgrade to an active plan wasn’t successful. Without an active plan, you can’t continue analyzing private projects or access key features.
To restore full access, please select an alternate plan.
I then go to select a new plan and choose “Downgrade to free”. We were previously on the enterprise plan. I then see the following message:
Manage organization members
The Free plan allows up to 5 members.
Your organization currently has 12 members. To proceed with the downgrade, you need to reduce the member count to 5.
I then click “Manage members”. I can see the 12 members but I am unable to delete them. These members (other than mine) were previously set up in Okta for SSO. We have removed these members from our SSO application but they still appear here.
Could someone help to remove all the users? The only one to keep is mine (sdwyer20)
Hi @sdwyer20, would you mind sharing a screenshot of what you see in the “manage members” screen? In what way can’t you delete these members? Also, were these members provisioned from the IdP via SCIM? Did you remove these members from the Okta application after removing the SonarQube Cloud organization from the enterprise?
I understand that what you want is to downgrade your organization and not to delete it, right? Just asking because of the post’s title.
As you can see, there is no option to delete these users. I click on the user to see if there are any options and there are non. The “Info” icon does sho: “This (SSO) user is managed through your Identity Provider.” This makes sense as they were provisioned from the IdP via SCIM (we used Okta). We removed the users from Okta AFTER removing the SonarQube Cloud organization from the enterprise.
After removing the users, I do intend on deleting the organization.
Okay, I see. Probably this is an edge case in which you’re unable to remove members both via UI and via SCIM sync (provisioning). I will let the team know, because we should be resilient to this.
However, for your purpose (deleting the organization), this shouldn’t be necessary. I understand that in your case a pop-up is blocking you from accessing the Administration settings and therefore reaching the page in the settings where you can delete the org. The workaround is to call the API directly:
@andres Thank you again for your response. Unfortanately, the curl is giving me a 401 error.
The Access Token I am using is a 40 character token created from my account. I think the reason for may 401 is that I may need a Scoped Organization Token which I can no longer generate being that I am no longer on the enterprise account.
I also tried Postman using: GET https://api.sonarcloud.io/organizations/organizations to list the organization which gave me a slightly different response when setting the Authorization header to “Bearer ”. The response was a 403:
{
"Message": "User is not authorized to access this resource with an explicit deny in an identity-based policy"
}
Hey @sdwyer20, that’s strange, usually these APIs only require you to be an organization admin, no need for a Scoped Organization Token. So if you try curl -i -H "Authorization: Bearer <your-token>" https://api.sonarcloud.io/organizations/organizations (or equivalent), do you get a 403? Is this a freshly-generated token for your user?
In any case, this is flagged for the team to look into, so maybe they can assist too from the back-end. We’ll see.
To help you get unblocked, could you please email contact@sonarsource.com with your organization key and a link to this discussion? Our team can investigate the remaining SSO-managed members and help you proceed.