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

Request

  • Base URL
    https://api.spotinst.io
  • URL
    https://api.spotinst.io/setup/user
  • Auth
    HTTP bearer

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
  }
}

Changes

No recorded changes to this operation across all 12 revisions of this API.