Logo

Command Palette

Search for a command to run...

Users represent individual user accounts in Cloud 66. Users can belong to multiple accounts with different roles and permissions.

Model
idinteger

The unique identifier of the user.

emailstring

The email address of the user.

primary_account_idinteger

The ID of the user's primary account.

accountsarray

An array of account roles showing all accounts this user has access to.

lockedboolean

Whether the user account is locked.

access_profileobject

The user's access profile including account profile, stack profiles, and ACLs.

uses_tfaboolean

Whether the user has two-factor authentication enabled.

timezonestring

The user's preferred timezone.

has_valid_phoneboolean

Whether the user has a validated phone number.

developer_programboolean

Whether the user is part of the developer program.

github_loginboolean

Whether the user logs in using GitHub authentication.

last_logindatetime

The date and time of the user's last login, in ISO 8601 format.

devicesarray

An array of devices registered for this user.

created_atdatetime

The date and time the user account was created, in ISO 8601 format.

updated_atdatetime

The date and time the user account was last updated, in ISO 8601 format.

cloud_statusstring

The status of the user's cloud provider connections.

Example

{
  "id": 12345,
  "email": "john@example.com",
  "primary_account_id": 67890,
  "accounts": [
    {
      "id": 67890,
      "role": "owner",
      "name": "Production Team"
    },
    {
      "id": 98765,
      "role": "admin",
      "name": "Development Team"
    }
  ],
  "locked": false,
  "access_profile": {
    "account_profile": "admin",
    "stack_profiles": [
      "deployment",
      "monitoring"
    ],
    "acls": [
      "read",
      "write",
      "deploy"
    ]
  },
  "uses_tfa": true,
  "timezone": "America/New_York",
  "has_valid_phone": true,
  "developer_program": false,
  "github_login": true,
  "last_login": "2024-02-15T09:30:00Z",
  "devices": [
    {
      "id": "device-123",
      "name": "MacBook Pro",
      "trusted": true
    }
  ],
  "created_at": "2023-06-15T10:30:00Z",
  "updated_at": "2024-02-15T09:30:00Z",
  "cloud_status": "connected"
}