GEThttps://api.spotinst.io/setup/user?accountId={ACCOUNT_ID}

Get all users in the organization, their details, and mapped accounts.

Providing the optional account ID parameter will filter out all users not mapped to that account.

Parameter Type Description
ACCOUNT_ID String

The Spotinst account ID

Example: act-abc123e
Request

Headers
Copied!
Downloaded!
{
    "Content-Type": "application/json",
    "Authorization": "Bearer ${token}"
}
Response - 200

Headers
Copied!
Downloaded!
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "e2923755-80ec-4751-be1a-3b4b4400d1d1",
    "url": "/setup/user?accountId=act-123456789",
    "method": "GET",
    "timestamp": "2017-11-15T08:03:54.322Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:setup:user",
    "items": [
      {
        "mappedAccountIds": [
          "act-0b18f123",
          "act-0b18f124",
          "act-0b18f125"
        ],
        "userId": "u-19265",
        "displayName": "test",
        "email": "abc@spotinst.com"
      },
      {
        "mappedAccountIds": [
          "act-0b18f123",
          "act-0b18f124",
          "act-0b18f125"
        ],
        "userId": "u-19266",
        "displayName": "test",
        "email": "abc@google.com"
      }
    ],
    "count": 2
  }
}