Retrieves a list of all users with access to an organization
o required | integer The Organization whose users you wish to list. The organization will be assumed based on the API key, if not specified. |
page | integer Default: 0 The page of results you wish to be returned with page numbers starting at 0. See About Automox API - Pagination |
limit | integer [ 1 .. 500 ] Default: 500 A limit on the number of results to be returned, between 1 and 500 with a default of 500. Use with |
Successful
Invalid Request
Access token is missing or invalid
You do not have permission to perform this action.
Entity not found
Too many requests
Service Unavailable
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = "https://console.automox.com/api/users?o=0000" Invoke-WebRequest -Method Get -Uri $url -Headers $headers
[- {
- "id": 0,
- "firstname": "string",
- "lastname": "string",
- "email": "string",
- "features": {
- "mo": true
}, - "prefs": [
- {
- "user_id": 0,
- "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,
- "rbac_roles": [
- {
- "id": 0,
- "name": "string",
- "description": "string",
- "organization_id": 0
}
], - "server_groups": [
- 0
]
}
]