---
title: "Lists a specific user’s resource groups."
method: GET
path: "/accessmanagement/users/{userId}/resourcegroups"
tags: ["accessmanagement - users"]
---

# Lists a specific user’s resource groups.

`GET /accessmanagement/users/{userId}/resourcegroups`

## Request

- Base URL: `https://manager.digicertdns.com/v1`
- URL: `https://manager.digicertdns.com/v1/accessmanagement/users/{userId}/resourcegroups`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/digicert/apis/digicert-dns/docs/accessmanagement/users/:userId/resourcegroups/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint lists a specific user’s resource groups, helping ensure the user has access only to the appropriate areas of the system.</br></br>Key features include:</br></br>- **Clear success messaging:** Returns a `200` success code with a confirmation message indicating the successful completion of the requested action.</br>- **Comprehensive error handling:** Returns `400` and `404` error codes with clear descriptions when requests fail.</br>- **Targeted data retrieval:** Employs the `userId` parameter to return the specified user's resource groups, ensuring accuracy and relevance in the response.

## Path parameters

- `userId` integer, required

## Response `200`

Resource groups returned successfully.

- ResourceGroupPaginated
  - `data` ResourceGroup[]
    - `id` integer
    - `name` string
    - `description` string
    - `canDelete` boolean
    - `canRename` boolean
    - `isDefault` boolean
    - `resourceCount` integer
    - `userGroupCount` integer
    - `userGroupSummary` ResourceGroupUserGroupSummary[]
      - `id` integer
      - `name` string
      - `roles` UserGroupRoles[]
        - `id` integer
        - `name` string
        - `description` string
        - `roleType` string
        - `isSystemRole` boolean
        - `canDelete` boolean
        - `canRename` boolean
        - `resourceGroupCount` integer
        - `userCount` integer
        - `modifiedTs` string, date-time
        - `createdTs` string, date-time
  - `total` integer
  - `count` integer
  - `perPage` integer
  - `currentPage` integer
  - `totalPages` integer

## Other responses

- `400`: Request is malformed or invalid.
- `404`: Resource not found.

---

[API](https://skmtc.dev/digicert/apis/digicert-dns.md) - [All operations](https://skmtc.dev/digicert/apis/digicert-dns/llms.txt) - [OpenAPI document](https://skmtc.dev/digicert/apis/digicert-dns/revisions/c74fc728cff8?raw)
