Users

A User resource represents a single Linux user account.

For a list of methods for this resource, see the end of this page.

Resource representations

A User resource.

{
  "kind": "clouduseraccounts#user",
  "id": unsigned long,
  "creationTimestamp": string,
  "name": string,
  "description": string,
  "selfLink": string,
  "owner": string,
  "publicKeys": [
    {
      "fingerprint": string,
      "creationTimestamp": string,
      "expirationTimestamp": string,
      "description": string,
      "key": string
    }
  ],
  "groups": [
    string
  ]
}
Property name Value Description Notes
creationTimestamp string [Output Only] Creation timestamp in RFC3339 text format.
description string An optional textual description of the resource; provided by the client when the resource is created.
groups[] list [Output Only] A list of URLs to Group resources who contain the user. Users are only members of groups in the same project.
id unsigned long [Output Only] Unique identifier for the resource; defined by the server.
kind string [Output Only] Type of the resource. Always clouduseraccounts#user for users.
name string Name of the resource; provided by the client when the resource is created.
owner string Email address of account's owner. This account will be validated to make sure it exists. The email can belong to any domain, but it must be tied to a Google account.
publicKeys[] list [Output Only] Public keys that this user may use to login.
publicKeys[].creationTimestamp string [Output Only] Creation timestamp in RFC3339 text format.
publicKeys[].description string An optional textual description of the resource; provided by the client when the resource is created.
publicKeys[].expirationTimestamp string Optional expiration timestamp. If provided, the timestamp must be in RFC3339 text format. If not provided, the public key never expires.
publicKeys[].fingerprint string [Output Only] The fingerprint of the key is defined by RFC4716 to be the MD5 digest of the public key.
publicKeys[].key string Public key text in SSH format, defined by RFC4253 section 6.6.

Methods

addPublicKey
Adds a public key to the specified User resource with the data included in the request.
delete
Deletes the specified User resource.
get
Returns the specified User resource.
insert
Creates a User resource in the specified project using the data included in the request.
list
Retrieves a list of users contained within the specified project.
removePublicKey
Removes the specified public key from the user.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Compute Engine Documentation