Retrieves a user by user ID

Retrieves a user by user ID

SecuritybearerAuth
Request
path Parameters
userId
required
integer

The User ID of the user to retrieve

query Parameters
o
required
integer

The Organization whose users you wish to list. The organization will be assumed based on the API key, if not specified.

Responses
200

Successful Operation

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

503

Service Unavailable

default

Invalid Request

get/users/{userId}
Request samples
$apiKey = 'your_automox_api_key'
$headers = @{
    "Authorization" = "Bearer $apiKey"
}
$url = 'https://console.automox.com/api/users/999999?o=0000'
Invoke-WebRequest -Method Get -Uri $url -Headers $headers
Response samples
application/json
[
  • {
    • "id": 123153,
    • "firstname": "John",
    • "lastname": "Doe",
    • "email": "john.doe@example.com",
    • "features": {
      • "mo": true
      },
    • "prefs": [
      • {
        • "user_id": 123153,
        • "pref_name": "string",
        • "value": "string"
        }
      ],
    • "orgs": [
      • {
        • "id": 0,
        • "zone_id": "4495020a-236f-46e0-9453-e3f9cc6476f4",
        • "name": "string",
        • "trial_end_time": "2019-08-24T14:15:22Z",
        • "trial_expired": true,
        • "create_time": "2019-08-24T14:15:22Z",
        • "plan": "basic",
        • "saml": {
          • "enabled": true,
          • "redirect": "string"
          },
        • "access_key": "string",
        • "metadata": { }
        }
      ],
    • "tags": [
      • "string"
      ],
    • "saml_enabled": true,
    • "sso_enabled": true,
    • "tfa_type": "string",
    • "rbac_roles": [
      • {
        • "id": 1,
        • "name": "Zone Administrator",
        • "description": "Provides full administrative rights to a specific zone.",
        • "organization_id": 123153
        }
      ],
    • "intercom_hmac": "string",
    • "server_groups": [
      • 123153
      ],
    • "account_id": "10af9475-fd20-4189-bb9c-e1c707ff2670",
    • "account_name": "My Account",
    • "account_rbac_roles": "global-admin",
    • "account_completed_qsg": true,
    • "account_created_at": "2021-01-01T00:00:00+0000"
    }
]