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)
URL:
POST to https://grafana-server-url/api/teams/2/members
Request:
{
“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?
https://grafana.com/docs/grafana/v9.0/developers/http_api/external_group_sync/