Managing user accounts
All operations with user accounts in the cloud platform are
located under the /users
endpoint.
User accounts represent the users registered on the platform.
User accounts created in a customer tenant have a personal tenant. Personal tenant represents a tenant bound to a specific user account, and is used only to control user account quotas and to collect user account real usage.
JSON object structure of a user account
Name |
Value type |
Description |
---|---|---|
|
UUID string |
The UUID of the user account. |
|
number |
Revision number. |
|
UUID string |
The UUID of the tenant where the user account was created. |
|
string |
A login of the user account. |
|
contact object |
The contact information of the account. |
|
boolean (default |
Activation status of the user. |
|
boolean (default |
Flag, that disables or enables user account in the platform. |
|
boolean (default |
Flag, that shows if the user accepted legal terms. |
|
string |
ISO 8601 date and time when the user was created. |
|
string |
User’s language. |
|
string |
External identity provider UUID. |
|
string |
User UUID in external identity provider (if the user was created through external identity provider). |
|
string |
Personal tenant UUID (if the user was created in the customer tenant). This tenant includes user account contact information and has |
|
array of strings |
User’s subscriptions for notifications. |
|
string |
User’s two-factor authentication (2FA) status. See available 2FA statuses. |
User account contact object structure
Name |
Value type |
Description |
---|---|---|
|
string |
An email address that will be used for account activation and service notifications. |
|
string |
|
|
string |
Address line 1. |
|
string |
Address line 2. |
|
string |
User’s country. |
|
string |
User’s state. |
|
string |
User’s zip code. |
|
string |
User’s city. |
|
string |
User’s phone number. |
|
string |
The first name of the user. |
|
string |
The last name of the user. |
Example user account
{
"id": "948efcf2-b740-4c40-bb2d-4e4a46adfd87",
"version": 2,
"tenant_id": "0ef03214-6e47-4e50-87f2-a5955ba6095c",
"login": "mylogin",
"contact": {
"email": "me@mysite.com",
"address1": "1440 River Drive #100",
"address2": "",
"country": "USA",
"state": "CA",
"zipcode": "12345",
"city": "Rivertown",
"phone": "123456789",
"firstname": "John",
"lastname": "Doe",
"types": ["billing", "management", "technical"]
},
"activated": true,
"enabled": true,
"terms_accepted": false,
"created_at": "2019-07-25T07:11:02.807354+00:00",
"language": "en",
"idp_id": "e6f73a28-ff2e-4728-8f78-49eb74b20fce",
"external_id": "S-1-5-21-917267712-1342860078-1792151419-500",
"personal_tenant_id": "2f8ad2e2-28f2-11e7-aad1-5ffe2ad47151",
"business_types": [],
"notifications": [
"quota",
"reports",
"backup_error",
"backup_warning",
"backup_info",
"backup_daily_report"
],
"mfa_status": "setup_required"
}
Available user account notifications
Value |
Description |
---|---|
|
Notifications regarding quota overuse. |
|
Notifications regarding scheduled usage reports. |
|
Notifications regarding backup errors. |
|
Notifications regarding backup warnings. |
|
Notifications regarding successful backup. |
|
Notifications with daily recap about active alerts. |
Available two-factor authentication (2FA) statuses
Value |
Description |
---|---|
|
Tenant has disabled 2FA and user is not required to use it in order to log in. |
|
Tenant has enabled 2FA and user is required to configure it in order to log in. |
|
Tenant has enabled 2FA and user has it configured. |
|
Force disables 2FA for the user account. Only used for service accounts. |
What you can do with user accounts
Operation |
Methods and endpoints used |
---|---|
GET /users/check_login POST /users |
|
GET /users/{user_id} POST /users/{user_id}/send-activation-email POST /users/{user_id}/password |
|
GET /users/{user_id}/access_policies PUT /users/{user_id}/access_policies |
|
GET /users/{user_id} |
|
POST /users/{user_id}/password |
|
PUT /users/{user_id} |
|
PUT /users/{user_id} |
|
PUT /users/{user_id} |
|
DELETE /users/{user_id} |