mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
LDAP: Fetch teams in debug view (#18951)
Adds the definition of `GetTeamsForLDAPGroupCommand` which handles the lookup of team information based on LDAP groupDNs. This is an Enterprise only feature. To diferentiate,a response will contain the `team` key as `null` on OSS while on Enterprise the key will contain an empty array `[]` when no teams are found.
This commit is contained in:
@@ -100,6 +100,17 @@ type GetAuthInfoQuery struct {
|
||||
Result *UserAuth
|
||||
}
|
||||
|
||||
type TeamOrgGroupDTO struct {
|
||||
TeamName string `json:"teamName"`
|
||||
OrgName string `json:"orgName"`
|
||||
GroupDN string `json:"groupDN"`
|
||||
}
|
||||
|
||||
type GetTeamsForLDAPGroupCommand struct {
|
||||
Groups []string
|
||||
Result []TeamOrgGroupDTO
|
||||
}
|
||||
|
||||
type SyncTeamsCommand struct {
|
||||
ExternalUser *ExternalUserInfo
|
||||
User *User
|
||||
|
||||
Reference in New Issue
Block a user