Skip to main content

users

Overview

Nameusers
TypeResource
Idlinode.account.users

Fields

NameDatatypeDescription
emailstringThe email address for the User. Linode sends emails to this address for account management communications. May be used for other communications as configured.
restrictedbooleanIf true, the User must be granted access to perform actions or access entities on this Account. See User Grants View (GET /account/users/{username}/grants) for details on how to configure grants for a restricted User.
ssh_keysarrayA list of SSH Key labels added by this User.

Users can add keys with the SSH Key Add (POST /profile/sshkeys) command.

These keys are deployed when this User is included in the authorized_users
field of the following requests:
- Linode Create (POST /linode/instances)
- Linode Rebuild (POST /linode/instances/{linodeId}/rebuild)
- Disk Create (POST /linode/instances/{linodeId}/disks)
tfa_enabledbooleanA boolean value indicating if the User has Two Factor Authentication (TFA) enabled. See the Create Two Factor Secret (POST /profile/tfa-enable) endpoint to enable TFA.
usernamestringThe User's username. This is used for logging in, and may also be displayed alongside actions the User performs (for example, in Events or public StackScripts).

Methods

NameAccessible byRequired ParamsDescription
getUserSELECTusernameReturns information about a single User on your Account.

This command can only be accessed by the unrestricted users of an account.
getUsersSELECTReturns a paginated list of Users on your Account.

This command can only be accessed by the unrestricted users of an account.

Users may access all or part of your Account based on their restricted status and grants. An unrestricted User may access everything on the account, whereas restricted User may only access entities or perform actions they've been given specific grants to.
createUserINSERTdata__email, data__usernameCreates a User on your Account. Once created, a confirmation message containing
password creation and login instructions is sent to the User's email address.

This command can only be accessed by the unrestricted users of an account.

The User's account access is determined by whether or not they are restricted,
and what grants they have been given.
deleteUserDELETEusernameDeletes a User. The deleted User will be immediately logged out and
may no longer log in or perform any actions. All of the User's Grants
will be removed.

This command can only be accessed by the unrestricted users of an account.
_getUserEXECusernameReturns information about a single User on your Account.

This command can only be accessed by the unrestricted users of an account.
_getUserGrantsEXECusernameReturns the full grants structure for the specified account User
(other than the account owner, see below for details). This includes all entities
on the Account alongside the level of access this User has to each of them.

This command can only be accessed by the unrestricted users of an account.

The current authenticated User, including the account owner, may view their
own grants at the /profile/grants
endpoint, but will not see entities that they do not have access to.
_getUsersEXECReturns a paginated list of Users on your Account.

This command can only be accessed by the unrestricted users of an account.

Users may access all or part of your Account based on their restricted status and grants. An unrestricted User may access everything on the account, whereas restricted User may only access entities or perform actions they've been given specific grants to.
getUserGrantsEXECusernameReturns the full grants structure for the specified account User
(other than the account owner, see below for details). This includes all entities
on the Account alongside the level of access this User has to each of them.

This command can only be accessed by the unrestricted users of an account.

The current authenticated User, including the account owner, may view their
own grants at the /profile/grants
endpoint, but will not see entities that they do not have access to.
updateUserEXECusernameUpdate information about a User on your Account. This can be used to
change the restricted status of a User. When making a User restricted,
no grants will be configured by default and you must then set up grants
in order for the User to access anything on the Account.

This command can only be accessed by the unrestricted users of an account.
updateUserGrantsEXECusernameUpdate the grants a User has. This can be used to give a User access
to new entities or actions, or take access away. You do not need to
include the grant for every entity on the Account in this request; any
that are not included will remain unchanged.

This command can only be accessed by the unrestricted users of an account.