grafana-toolbox / grafana-client

Python client library for accessing the Grafana HTTP API.
MIT License
101 stars 28 forks source link

User Teams API endpoint missing #171

Closed chintal closed 5 months ago

chintal commented 5 months ago

Teams Actual User belongs to

Describe and link the Grafana API endpoint which are currently missing.

Async client does not have the API endpoint that lets one check which teams a user is a member of. I intend to use this to check whether a user needs to be added to a team (or if the user already is, in which case I don't do the write)

chintal commented 5 months ago

My mistake. The endpoint is missing, however it won't solve my problem. I want the teams a different user belongs to, not the ones for the user doing the API call. I will leave the issue open since the endpoint is indeed missing.

https://grafana.com/docs/grafana/latest/developers/http_api/user/#get-teams-for-user

This endpoint also seems to be missing.

amotl commented 5 months ago

Dear @chintal,

thank you for writing in, and for reporting that gap in API coverage. Would you be up for submitting a corresponding patch?

With kind regards, Andreas.

/cc @sedan07, @hamelg

chintal commented 5 months ago

@amotl Sure