Users

List a user's custom roles

get/users/{id}/user_roles

Request

  • Base URL
    https://company.aha.io/api/v1
  • Auth
    • OAuth 2
      Authorization codehttps://{account-domain}.aha.io/oauth/authorize
      Token URLhttps://{account-domain}.aha.io/oauth/token
    • or HTTP bearer
    • or API key in cookie session
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

idstring required

Id identifier

Query parameters

pagestring
per_pagestring

Response

Successful operation

Example response

{
  "user_roles": [
    {
      "role_id": 409541421,
      "name": "Project scoped role 1",
      "scope": {
        "type": "project",
        "name": "Project 1",
        "id": 131414752
      }
    }
  ],
  "pagination": {
    "total_records": 1,
    "total_pages": 1,
    "current_page": 1
  }
}

Changes

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