1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: Apache-2.0
7 // User is an arvados#user record
9 UUID string `json:"uuid,omitempty"`
10 IsActive bool `json:"is_active"`
11 IsAdmin bool `json:"is_admin"`
12 Username string `json:"username,omitempty"`
15 // CurrentUser calls arvados.v1.users.current, and returns the User
16 // record corresponding to this client's credentials.
17 func (c *Client) CurrentUser() (User, error) {
19 err := c.RequestAndDecode(&u, "GET", "arvados/v1/users/current", nil, nil)