---
title: "Assigns a specific user group to a specific resource group."
method: PUT
path: "/accessmanagement/resourcegroups/{resourceGroupId}/usergroups/{userGroupId}"
tags: ["accessmanagement - resource groups"]
---

# Assigns a specific user group to a specific resource group.

`PUT /accessmanagement/resourcegroups/{resourceGroupId}/usergroups/{userGroupId}`

## Request

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

This endpoint assigns a specific user group to a specific resource group, granting the group access to specific resources.</br></br>Key features include:</br></br>- **Clear success messaging:** Returns a `204` 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>- **Flexible assignment handling:** Facilitates the assignment of a specific user group, ensuring precise control and streamlined management across the system.</br>- **Targeted data assignment:** Leverages the `resourceGroupId` and `userGroupId` parameters in the URL path to assign data to the specified resource group, ensuring accurate and focused allocations.

## Path parameters

- `userGroupId` integer, required
- `resourceGroupId` integer, required

## Request body

- UpdateUserGroupResourceGroupRequest
  - `roles` BulkRemoveBody[]
    - `id` integer

## Response `204`

User group assigned successfully.

## 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)
