---
title: "Creates a new user role."
method: POST
path: "/accessmanagement/userroles"
tags: ["accessmanagement - user roles"]
---

# Creates a new user role.

`POST /accessmanagement/userroles`

## Request

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

This endpoint creates a new user role, allowing users to define custom permissions and manage access effectively.</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 a `400` error code with a clear description when requests fail.</br>- **Seamless user role creation:** Facilitates the creation of a user role in-line with the appropriate schema, ensuring smooth and efficient organization.

## Request body

- UserRoleAdd
  - `name` string
  - `description` string
  - `permissions` UserRoleAddPermissions[]
    - `typeId` number
    - `actionId` number
    - `deny` boolean
    - `status` string

## Response `200`

User role created successfully.

- UserRoleAddPayload
  - `id` integer
  - `name` string
  - `description` string

## Other responses

- `400`: Request is malformed or invalid.

---

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