---
title: "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments"
tags: ["RoleAssignments"]
---

# GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Gets all the role assignments for the specified hub.

## Path parameters

- `resourceGroupName` string, required
- `hubName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK. Successfully get all the role assignment in the hub.

- RoleAssignmentListResult: The response of list role assignment operation.
  - `value` RoleAssignmentResourceFormat[]: Results of the list operation.
    - `id` string: Resource ID.
    - `name` string: Resource name.
    - `type` string: Resource type.
    - `properties` RoleAssignment: The Role Assignment definition.
      - `tenantId` string: The hub name.
      - `assignmentName` string: The name of the metadata object.
      - `displayName` object: Localized display names for the metadata.
      - `description` object: Localized description for the metadata.
      - `provisioningState` 'Provisioning' | 'Succeeded' | 'Expiring' | 'Deleting' | 'HumanIntervention' | 'Failed': Provisioning state.
      - `role` 'Admin' | 'Reader' | 'ManageAdmin' | 'ManageReader' | 'DataAdmin' | 'DataReader', required: Type of roles.
      - `principals` AssignmentPrincipal[], required: The principals being assigned to.
        - `principalId` string, required: The principal id being assigned to.
        - `principalType` string, required: The Type of the principal ID.
        - `principalMetadata` object: Other metadata for the principal.
      - `profiles` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `interactions` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `links` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `kpis` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `sasPolicies` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `connectors` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `views` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `relationshipLinks` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `relationships` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `widgetTypes` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `roleAssignments` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `conflationPolicies` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
      - `segments` ResourceSetDescription: The resource set description.
        - `elements` string[]: The elements included in the set.
        - `exceptions` string[]: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
  - `nextLink` string: Link to the next set of results.

---

[API](https://skmtc.dev/azure/apis/customer-insights-microsoft-customerinsights-customerinsight.md) - [All operations](https://skmtc.dev/azure/apis/customer-insights-microsoft-customerinsights-customerinsight/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/customer-insights-microsoft-customerinsights-customerinsight/revisions/1a3e19f598e0?raw)
