mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Org API: enrich add user to org endpoints with user ID in the response (#27551)
This commit is contained in:
@@ -123,7 +123,10 @@ func inviteExistingUserToOrg(c *models.ReqContext, user *models.User, inviteDto
|
||||
}
|
||||
}
|
||||
|
||||
return Success(fmt.Sprintf("Existing Grafana user %s added to org %s", user.NameOrFallback(), c.OrgName))
|
||||
return JSON(200, util.DynMap{
|
||||
"message": fmt.Sprintf("Existing Grafana user %s added to org %s", user.NameOrFallback(), c.OrgName),
|
||||
"userId": user.Id,
|
||||
})
|
||||
}
|
||||
|
||||
func RevokeInvite(c *models.ReqContext) Response {
|
||||
|
||||
Reference in New Issue
Block a user