Adding External Group in teams API throws "bad request data"

Hi all!
I’m trying to add an external group to a team through the API, but keep seeing “bad request data” in the response.
I have followed exactly the instructions in External Group Sync HTTP API reference (reference url below)

POST to https://grafana-server-url/api/teams/2/members

“groupId”: “cn=some-group,ou=DirectoryServices,ou=Groups,dc=wmservice,dc=corpnet1,dc=com”


  • What Grafana version and what operating system are you using?
    Grafana v8.4.2

  • What are you trying to achieve?
    Add an external group to a team through API

  • How are you trying to achieve it?
    REST API call

  • What happened?
    400 “bad request data” in response

  • What did you expect to happen?
    Group is added to the team

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    “message”: “bad request data”

  • Did you follow any online instructions? If so, what is the URL?

I found the issue, the documentation gives the wrong endpoint.
It says

POST /api/teams/1/members HTTP/1.1

which is incorrect
The right one is

POST /api/teams/1/groups HTTP/1.1

Where do I raise the issue to get it fixed?