Why do I get "Sharing a group with group owner is not possible"?

Options

I want to share a group with an existing user. I created a company token, and use it with the following API call:

curl --location --request POST 'https://webapi.teamviewer.com/api/v1/users/uredacted/groups/gredacted/share_group' \

--header 'Authorization: Bearer REDACTED' \

--header 'Content-Type: application/json' \

--data-raw '{'\''users'\'': [ { '\''userid'\'': '\''uredacted'\'', '\''email'\'': '\''redacted@myemail.com'\'', '\''permissions'\'': '\''read'\'' } ] }'

In response to this I get: "Sharing a group with the group owner is not possible. Please remove userId: uredacted from the list."

The message seems clear, but the user in question is just a regular user, not an owner, and the group hasn't even been shared with this user. Any idea how to resolve this?

Tagged: