Profile v4.176.0
Get a profile
Returns information about the current User. This can be used to see who is acting in applications where more than one token is managed. For example, in third-party OAuth applications.
This operation is always accessible, no matter what OAuth scopes the acting token has.
Authorizations
personalAccessToken | |
oauth |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/profile
linode-cli profile view
Response Samples
{
"authentication_type": "password",
"authorized_keys": [
null
],
"email": "example-user@gmail.com",
"email_notifications": true,
"ip_whitelist_enabled": false,
"lish_auth_method": "keys_only",
"referrals": {
"code": "871be32f49c1411b14f29f618aaf0c14637fb8d3",
"completed": 0,
"credit": 0,
"pending": 0,
"total": 0,
"url": "https://www.linode.com/?r=871be32f49c1411b14f29f618aaf0c14637fb8d3"
},
"restricted": false,
"timezone": "US/Eastern",
"two_factor_auth": true,
"uid": 1234,
"username": "exampleUser",
"verified_phone_number": "+5555555555"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
authentication_type | string Enum:
password
github Read-only This account’s Cloud Manager authentication type. Authentication types are chosen through Cloud Manager and authorized when logging into your account. These authentication types are either the user’s password (in conjunction with their username), or the name of their identity provider such as GitHub. For example, if a user:
Note: This functionality may not yet be available in Cloud Manager. See the Cloud Manager Changelog for the latest updates. | ||||||||||||
authorized_keys Nullable | array
of strings The list of SSH Keys authorized to use Lish for your User. This value is ignored
if | ||||||||||||
email | string<email> Your email address. This address will be used for communication with Linode as necessary. | ||||||||||||
email_notifications | boolean If true, you will receive email notifications about account activity. If false, you may still receive business-critical communications through email. | ||||||||||||
ip_whitelist_enabled | boolean If true, logins for your User will only be allowed from whitelisted IPs. This setting is currently deprecated, and cannot be enabled. If you disable this setting, you will not be able to re-enable it. | ||||||||||||
lish_auth_method | string Enum:
password_keys
keys_only
disabled The authentication methods that are allowed when connecting to the Linode Shell (Lish).
| ||||||||||||
referrals | object Read-only Information about your status in our referral program. This information becomes accessible after this Profile’s Account has established at least $25.00 USD of total payments.
| ||||||||||||
restricted | boolean If true, your User has restrictions on what can be accessed on your Account. To get details on what entities/actions you can access/perform, run List grants. | ||||||||||||
timezone | string The timezone you prefer to see times in. This is not used by the API directly. It is provided for the benefit of clients such as the Linode Cloud Manager and other clients built on the API. All times returned by the API are in UTC. | ||||||||||||
two_factor_auth | boolean If true, logins from untrusted computers will require Two Factor Authentication. Run Create a two factor secret to enable Two Factor Authentication. | ||||||||||||
uid | integer Read-only Your unique ID in our system. This value will never change, and can safely be used to identify your User. | ||||||||||||
username | string Read-only Your username, used for logging in to our system. | ||||||||||||
verified_phone_number Nullable | string<phone> Read-only The phone number verified for this Profile with the Verify a phone number operation.
|
errors | array
of objects
|
Update a profile
Update information in your Profile. This operation requires the “account:read_write” OAuth Scope.
Parent and child accounts
In a parent and child account environment, the following apply:
- You can’t edit the
email
for a child account parent user (proxy user). This value is fixed and set when you provision this environment.
CLI.
linode-cli profile update
OAuth.
account:read_write
Authorizations
personalAccessToken | |
oauth | account:read_write |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"email": "example-user@gmail.com",
"timezone": "US/Eastern",
"email_notifications": true,
"lish_auth_method": "keys_only",
"authorized_keys": null,
"two_factor_auth": true,
"restricted": false
}' \
https://api.linode.com/v4/profile
linode-cli profile update \
--email example-user@gmail.com \
--timezone US/Eastern \
--email_notifications true \
--list_auth_method keys_only \
--two_factor_auth true \
--restricted false
Request Body Schema
authorized_keys Nullable | array
of strings The list of SSH Keys authorized to use Lish for your User. This value is ignored if
|
email | string<email> Your email address. This address will be used for communication with Linode as necessary. |
email_notifications | boolean If true, you will receive email notifications about account activity. If false, you may still receive business-critical communications through email. |
ip_whitelist_enabled | boolean If true, logins for your User will only be allowed from whitelisted IPs. This setting is currently deprecated, and cannot be enabled. If you disable this setting, you will not be able to re-enable it. |
lish_auth_method | string Enum:
password_keys
keys_only
disabled The authentication methods that are allowed when connecting to the Linode Shell (Lish).
|
restricted | boolean If true, your User has restrictions on what can be accessed on your Account. To get details on what entities/actions you can access/perform, run List grants. |
timezone | string The timezone you prefer to see times in. This is not used by the API directly. It is provided for the benefit of clients such as the Linode Cloud Manager and other clients built on the API. All times returned by the API are in UTC. |
two_factor_auth | boolean If true, logins from untrusted computers will require Two Factor Authentication. Run Create a two factor secret to enable Two Factor Authentication. |
Response Samples
{
"authentication_type": "password",
"authorized_keys": [
null
],
"email": "example-user@gmail.com",
"email_notifications": true,
"ip_whitelist_enabled": false,
"lish_auth_method": "keys_only",
"referrals": {
"code": "871be32f49c1411b14f29f618aaf0c14637fb8d3",
"completed": 0,
"credit": 0,
"pending": 0,
"total": 0,
"url": "https://www.linode.com/?r=871be32f49c1411b14f29f618aaf0c14637fb8d3"
},
"restricted": false,
"timezone": "US/Eastern",
"two_factor_auth": true,
"uid": 1234,
"username": "exampleUser",
"verified_phone_number": "+5555555555"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
authentication_type | string Enum:
password
github Read-only This account’s Cloud Manager authentication type. Authentication types are chosen through Cloud Manager and authorized when logging into your account. These authentication types are either the user’s password (in conjunction with their username), or the name of their identity provider such as GitHub. For example, if a user:
Note: This functionality may not yet be available in Cloud Manager. See the Cloud Manager Changelog for the latest updates. | ||||||||||||
authorized_keys Nullable | array
of strings The list of SSH Keys authorized to use Lish for your User. This value is ignored
if | ||||||||||||
email | string<email> Your email address. This address will be used for communication with Linode as necessary. | ||||||||||||
email_notifications | boolean If true, you will receive email notifications about account activity. If false, you may still receive business-critical communications through email. | ||||||||||||
ip_whitelist_enabled | boolean If true, logins for your User will only be allowed from whitelisted IPs. This setting is currently deprecated, and cannot be enabled. If you disable this setting, you will not be able to re-enable it. | ||||||||||||
lish_auth_method | string Enum:
password_keys
keys_only
disabled The authentication methods that are allowed when connecting to the Linode Shell (Lish).
| ||||||||||||
referrals | object Read-only Information about your status in our referral program. This information becomes accessible after this Profile’s Account has established at least $25.00 USD of total payments.
| ||||||||||||
restricted | boolean If true, your User has restrictions on what can be accessed on your Account. To get details on what entities/actions you can access/perform, run List grants. | ||||||||||||
timezone | string The timezone you prefer to see times in. This is not used by the API directly. It is provided for the benefit of clients such as the Linode Cloud Manager and other clients built on the API. All times returned by the API are in UTC. | ||||||||||||
two_factor_auth | boolean If true, logins from untrusted computers will require Two Factor Authentication. Run Create a two factor secret to enable Two Factor Authentication. | ||||||||||||
uid | integer Read-only Your unique ID in our system. This value will never change, and can safely be used to identify your User. | ||||||||||||
username | string Read-only Your username, used for logging in to our system. | ||||||||||||
verified_phone_number Nullable | string<phone> Read-only The phone number verified for this Profile with the Verify a phone number operation.
|
errors | array
of objects
|