---
title: "Performs a bulk update of user roles."
method: PUT
path: "/accessmanagement/users/bulk/roles"
tags: ["accessmanagement - users"]
---

# Performs a bulk update of user roles.

`PUT /accessmanagement/users/bulk/roles`

## Request

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

This endpoint performs a bulk update of user roles, streamlining large-scale permission changes to save time and reduce manual errors.</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>- **Reliable user role updates:** Facilitates the bulk modification of user roles, ensuring accurate and up-to-date information across the system.

## Request body

- UpdateUsersUserRolesRequest
  - `users` UpdateUsersUserRolesRequestUsers[]
    - `userId` integer
    - `roles` UpdateUsersUserRolesRequestRoles[]
      - `id` integer

## Response `204`

User roles updated 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)
