v1

latestOpenAPI 3.0.02026-08-0645003.8 MB
Accounts

Get Users

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.

get/setup/user

Query parameters

accountIdstring

ID of the account you would like to get retrieve users from

Response

Get Account Users Response

Example response

{
  "request": {
    "id": "46642c7d-bc29-417d-8ce4-79626f00c63c",
    "url": "/setup/user?accountId=act-123456789",
    "method": "GET",
    "timestamp": "2018-11-19T13:49:11.911Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:group:log",
    "items": [
      {
        "mappedAccountIds": [
          "act-0b18f123",
          "act-0b18f124",
          "act-0b18f125"
        ],
        "userId": "u-19265",
        "displayName": "test",
        "email": "test@spot.io"
      },
      {
        "mappedAccountIds": [
          "act-0b18f123",
          "act-0b18f124",
          "act-0b18f125"
        ],
        "userId": "u-19266",
        "displayName": "test",
        "email": "abc@google.com"
      }
    ],
    "count": 2
  }
}