API: Add updatedAt to api/users/:id (#19004)

* API: Add `updatedAt` to api/users/:id

This adds the timestamp of when a particular user was last updated to
the `api/users/:id` endpoint.

This helps our administrators understand when was the user information last
updated. Particularly when it comes from external systems e.g. LDAP
This commit is contained in:
gotjosh
2019-09-11 13:43:05 +01:00
committed by GitHub
parent a07f46cee0
commit fa007423e3
3 changed files with 65 additions and 12 deletions

View File

@ -331,6 +331,7 @@ func GetUserProfile(query *models.GetUserProfileQuery) error {
IsGrafanaAdmin: user.IsAdmin,
IsDisabled: user.IsDisabled,
OrgId: user.OrgId,
UpdatedAt: user.Updated,
}
return err