---
title: "List roles"
method: GET
path: "/console/v1/roles/{productID}"
tags: ["Admin Roles"]
---

# List roles

`GET /console/v1/roles/{productID}`

## Request

- Base URL: `https://apis.druva.com/platform`
- URL: `https://apis.druva.com/platform/console/v1/roles/{productID}`
- Auth: API key in header `Authorization`

Returns the list of Product Administrator Roles and the resources they can access.

## Path parameters

- `productID` 8193 | 12289, required

## Headers

- `Content-Type` 'application/json', required

## Response `200`

Success

- ListRolesResponseInner[]
  - `role` string: The role of the administrator you want to create. ``` Possible Enterprise Workloads roles are : - Cloud Administrator - Cloud Administrator (View-only) - Data Protection Officer - Organization Administrator - Organization Administrator (View-only) - Group Administrator - Group Administrator (View-only) Possible inSync roles are : - Cloud Admin - Data Protection Officer - Help Desk Admin - Legal Admin - Profile Admin - Sensitive Data Governance Admin - View Only Admin - Workload Admin ```
  - `accessControl` object[]
    - `resource` string: Resource can be Organization or Groups for Enterprise Workloads. Resource can be Workload, Profiles or Legal Hold Types for Endpoint and SaaS Apps.
    - `collections` object[]
      - `collectionID` integer: The id of the resource for which you want to allow admin to access. - The id of the site or organization for Enterprise Workloads - The id of the Workload or Profile or Legal Hold Type for for Endpoints and SaaS Apps
      - `collectionName` string: The name of the resource for which you want to allow admin to access. - The name of the site or organization for Enterprise Workloads - The name of the Workload or Profile or Legal Hold Type for for Endpoints and SaaS Apps
      - `itemList` object[]: Details of group of which admin access is provided
        - `itemID` integer: Group id of the site the admin should be granted access
        - `itemName` string: Group name of the site the admin should be granted access

## Other responses

- `400`: Bad Request
- `404`: The requested resource was not found.
- `500`: The request was not processed due to an internal error.

---

[API](https://skmtc.dev/druva/apis/platform.md) - [All operations](https://skmtc.dev/druva/apis/platform/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/platform/revisions/80533a559af4?raw)
