Replies: 12 comments 2 replies
-
hello @FrankAnk. I'll have a look to see if the SDK supports this. Do you know by any chance when it was released, I don't think team is a concept I was familiar with till now. |
Beta Was this translation helpful? Give feedback.
-
Teams has been part of Grafana for a while, you can authorize Teams to access folders. The users are added to the team as members to receive the rights assigned to the team. See: https://grafana.com/blog/2022/03/14/how-to-best-organize-your-teams-and-resources-in-grafana/ HTTP API Reference: https://grafana.com/docs/grafana/latest/http_api/ |
Beta Was this translation helpful? Give feedback.
-
This requires SDK Changes so will revisit this a bit later. There's some talk about an official (community supported) SDK so maybe that'll be more feature complete, otherwise will try to address this time pending. Per usual any PR is welcome. SDK can be found here |
Beta Was this translation helpful? Give feedback.
-
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Beta Was this translation helpful? Give feedback.
-
@FrankAnk I'm revisiting this ticket again. Just to clarify you're looking to save the state of the team memberships in grafana, not to add/delete users via GDG, correct? |
Beta Was this translation helpful? Give feedback.
-
This is correct! |
Beta Was this translation helpful? Give feedback.
-
Hi @FrankAnk , |
Beta Was this translation helpful? Give feedback.
-
Thanks @mc-chaos Sascha, i'll give it a try! Regards, Franklin |
Beta Was this translation helpful? Give feedback.
-
I converted this issue into a conversation because I think we're talking about several things here. I'll re-create some issues that better capture this. So I'll put the alert rule conversation in the back burner since I don't think those are supported in the SDK i'm using. Team membership we can add but it may not work as smoothly as you like. My understanding on how grafana works with LDAP. The user is only created once a user has logged in successfully. I can save the team information and members associated with a particular team but if the user doesn't exist this won't be useful. I think you'll want a full user CRUD that'll dump and restore the user list in order to make this feature useful. Does the above sound right? |
Beta Was this translation helpful? Give feedback.
-
Yeah, I know. I'm trying to get some answer from Grafana regarding their new API. They released an OpenAPI spec. You can drop this file in this swagger UI. There's a legacy GoLang API that's supposed to get deprecated and a new one that isn't finalized yet. Once that's up I'd like to migrate to it but it's been moving very slowly on updates. So a lot of these features I tend to try to avoid hacking something together that will get easily solved with the new API once released (I hope). Otherwise I can just pull the API and generate some swagger models but it seems silly to do a major refactoring while they're still in alpha stage. |
Beta Was this translation helpful? Give feedback.
-
@FrankAnk this will be released in the next 0.4.2. One caveat is that I'm not able to find an endpoint that lets me add members as "Admins". #149. Next version should have the basic team management. Still working on the docs but it's the standard CRUD across all teams or on a specific team. |
Beta Was this translation helpful? Give feedback.
-
I mispoke, had an issue with the release. it's version 0.4.3. Just pushed this out today. |
Beta Was this translation helpful? Give feedback.
-
It would be great if we had this to manage Teams as well as Users
see: https://grafana.com/docs/grafana/latest/http_api/team/
Beta Was this translation helpful? Give feedback.
All reactions