3 // User is an arvados#user record
5 UUID string `json:"uuid,omitempty"`
6 IsActive bool `json:"is_active"`
7 IsAdmin bool `json:"is_admin"`
8 Username string `json:"username,omitempty"`
11 // CurrentUser calls arvados.v1.users.current, and returns the User
12 // record corresponding to this client's credentials.
13 func (c *Client) CurrentUser() (User, error) {
15 err := c.RequestAndDecode(&u, "GET", "arvados/v1/users/current", nil, nil)