Roles

List User Roles

Lists the roles assigned to a user. Returns 400 if any filter parameters are invalid.

get/v3/users/{userId}/assigned-roles

Query parameters

Filter roles returned in the response.

Response

A paginated list response for a collection of assigned roles.

Example response

{
  "meta": {
    "page": {
      "number": 1,
      "size": 10,
      "total": 100
    }
  },
  "data": [
    {
      "id": "54cc6168-ebb1-4300-8168-d62a0dd08fc8",
      "role_name": "Viewer",
      "entity_id": "18ee2573-dec0-4b83-be99-fa7700bcdc61",
      "entity_type_name": "Control Planes",
      "entity_region": "us"
    }
  ]
}

Changes

Changed in 6 of the 75 revisions of this API.11108

    • added the new type enum value to the allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterStandard]/rule response property for the response status 400

      response-property-enum-value-added

    • added the new sg enum value to the data/items/entity_region response property for the response status 200

      response-property-enum-value-added

    • for the query request parameter filter, the type/format of property entity_type_name was changed from string/ to /

      request-parameter-property-type-changed

    • for the query request parameter filter, the type/format of property role_name was changed from string/ to /

      request-parameter-property-type-changed

    This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the response property allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterChoiceItem]/source became nullable for the status 400

      response-property-became-nullable

    • the response property allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterDependentItem]/source became nullable for the status 400

      response-property-became-nullable

    • the response property allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterMaximumLength]/source became nullable for the status 400

      response-property-became-nullable

    • the response property allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterMinimumLength]/source became nullable for the status 400

      response-property-became-nullable

    • the response property allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterStandard]/source became nullable for the status 400

      response-property-became-nullable

    • the response property data became nullable for the status 200

      response-property-became-nullable

    • the response property data/items/entity_id became nullable for the status 200

      response-property-became-nullable

    • the response property data/items/entity_type_name became nullable for the status 200

      response-property-became-nullable

    • the response property data/items/role_name became nullable for the status 200

      response-property-became-nullable

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 6333a0d3b095161See the full diff
    • the data/items/entity_region response's property type/format changed from / to string/ for status 200

      response-property-type-changed

    • added the new * enum value to the data/items/entity_region response property for the response status 200

      response-property-enum-value-added

    • added the new au enum value to the data/items/entity_region response property for the response status 200

      response-property-enum-value-added

    • added the new eu enum value to the data/items/entity_region response property for the response status 200

      response-property-enum-value-added

    • added the new in enum value to the data/items/entity_region response property for the response status 200

      response-property-enum-value-added

    • added the new me enum value to the data/items/entity_region response property for the response status 200

      response-property-enum-value-added

    • added the new us enum value to the data/items/entity_region response property for the response status 200

      response-property-enum-value-added

    • removed EntityRegion subschema #2 from the data/items/entity_region response property allOf list for the response status 200

      response-property-all-of-removed

    This revision also has 15 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 76b0fefddb0d17See the full diff
    • the data/items/entity_region response's property type/format changed from string/ to / for status 200

      response-property-type-changed

    • added EntityRegion subschema #2 to the data/items/entity_region response property allOf list for the response status 200

      response-property-all-of-added

    • removed the * enum value from the data/items/entity_region response property for the response status 200

      response-property-enum-value-removed

    • removed the au enum value from the data/items/entity_region response property for the response status 200

      response-property-enum-value-removed

    • removed the eu enum value from the data/items/entity_region response property for the response status 200

      response-property-enum-value-removed

    • removed the in enum value from the data/items/entity_region response property for the response status 200

      response-property-enum-value-removed

    • removed the me enum value from the data/items/entity_region response property for the response status 200

      response-property-enum-value-removed

    • removed the us enum value from the data/items/entity_region response property for the response status 200

      response-property-enum-value-removed