Accounts

Assign Users to Accounts

Assign users to accounts in bulk. Only accounts under the creator's own organization are allowed. Creator's organization ID is taken from the personal token attached to the API call.

post/setup/accountUserMapping

Request

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

Parameters

#/paths/~1azure~1costs/get/parameters/0 (unresolved $ref)

Request body

OR

Example request

{
  "mappings": [
    {
      "userId": "u-1234",
      "accountId": "act-123abc",
      "role": "editor"
    },
    {
      "userId": "u-1234",
      "accountId": "act-123abc",
      "permissionStrategy": "ROLE_BASED",
      "role": "editor"
    }
  ]
}

Response

Assign Users To Accounts Response

Example response

{
  "request": {
    "id": "46642c7d-bc29-417d-8ce4-79626f00c63c",
    "url": "/setup/accountUserMapping?accountId=act-4fab9sc6",
    "method": "POST",
    "timestamp": "2018-11-19T13:49:11.911Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    }
  }
}

Changes

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