The combination group name and organization key or group id must be provided

Hi everyone,
When trying to add a user to a group, we are receiving the following error:

The combination group name and organization key or group id must be provided

It seems to happen with all users across all groups, built-in and not, of the organization.
Is anyone aware of this issue?
Thank you!

2 Likes

It is the same for our organization.
We are not able to:

  1. Add a user to any group.
  2. Create a new group.

Screenshot 2024-07-09 at 16.13.50

We are experimenting the same issue. We can add users but not assign them into a group

Hi everyone,

Yesterday I created a new group in SonarCloud. Today it turned out we don’t actually need a group with this permission set and I tried to delete it. When I try to do so or for that matter remove or add anyone to any group, I just get a notification saying: “The combination group name and organization key or group id must be provided”

I haven’t changed anything since yesterday and I can still adjust group and user permissions. Any ideas why this is happening?

Cheers,
Fynn

Hi all,

Thanks for these reports. We’ve reproduced the error, raised an incident internally and have started troubleshooting.

 
Ann & the SonarCloud team

1 Like

Hi again,

This is fixed.

Thanks for both your reports and your patience!

 
Ann

2 Likes

I’m still experiencing this @ganncamp when trying to create a new project using the web api.

Hey @renefritze

Can you share the API call you’re making? Hope we can look into this right away if you’re still facing issues.

Sure, this is the snippet of my Python script

    endpoint = f"{sonarcloud_url}/projects/create"
    data = {"name": name, "project": project_key, "organization": organization_key, "visibility": "private"}

    response = requests.post(endpoint, headers=headers, json=data)

The response then has a 400 status code and the text is '{"errors":[{"msg":"The \\u0027organization\\u0027 parameter is missing"}]}'

Thanks!

So you aren’t receiving this error:

The combination group name and organization key or group id must be provided

And the issue is with using the Web API (not the UI, which was the problem yesterday).

So, I think this might be a separate issue. I’m just making sure right now that it’s not a continuation of yesterday’s incident. Was the script working before yesterday but not today? Or is this a new script you’re writing?

On my side, the endpoint is working as expected, although I’m using form-data instead of passing a raw JSON body (I don’t think that’s supported).

1 Like

Thanks for checking @Colin. That was a new script I started a few hours ago.
And not sending JSON indeed fixes it for me (too). So my problwm was a case of me mistaking the same-ish error message.
Would it be possible to improve the error message from the API when sending unexpected/unsupported content type?

That’s an interesting idea I’ll pass along. Admittedly, the error message of “The organization parameter is missing” makes it sound like other parameters aren’t missing, so I get the confusion.

1 Like