Skip to content

Commit 43693eb

Browse files
authored
Fixing User data model (#146)
1 parent 90d3283 commit 43693eb

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

user.go

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@ package sdk
2020
*/
2121

2222
type User struct {
23-
ID uint `json:"id"`
24-
Login string `json:"login"`
25-
Name string `json:"name"`
26-
Email string `json:"email"`
27-
Theme string `json:"theme"`
28-
OrgID uint `json:"orgId"`
29-
Password string `json:"password"`
30-
IsGrafanaAdmin bool `json:"isGrafanaAdmin"`
23+
ID uint `json:"id"`
24+
Login string `json:"login"`
25+
Name string `json:"name"`
26+
Email string `json:"email"`
27+
OrgID uint `json:"orgId"`
28+
Theme string `json:"theme"`
29+
Password string `json:"password"`
30+
IsDisabled bool `json:"isDisabled"`
31+
AuthLabels []string `json:"authLabels"`
32+
IsGrafanaAdmin bool `json:"isGrafanaAdmin"`
33+
IsExternal bool `json:"isExternal"`
34+
IsAdmin bool `json:"isAdmin"` //Different value used for Search Endpoint
3135
}
3236

3337
type UserRole struct {

0 commit comments

Comments
 (0)