---
updatedAt: 2026-07-02T14:53:06.000Z
---

# Creates user and assigns customized permissions or roles.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "BeyondTrust PM Cloud Management API - Version 3",
    "description": "BeyondTrust PM Cloud Management API - Version 3",
    "version": "v3"
  },
  "servers": [
    {
      "url": "/management-api"
    }
  ],
  "paths": {
    "/v3/Users": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Creates user and assigns customized permissions or roles.",
        "requestBody": {
          "description": "An object with the attributes required to create a PMC user.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V3CreateUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V3CreateUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V3CreateUserRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": [],
            "oauth2": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "RoleResourceModel": {
        "type": "object",
        "properties": {
          "resourceType": {
            "type": "string",
            "description": "Type of resource",
            "nullable": true
          },
          "resourceId": {
            "type": "string",
            "description": "Id of the resource",
            "format": "uuid",
            "nullable": true
          },
          "roleId": {
            "type": "string",
            "description": "Role Id",
            "format": "uuid"
          }
        },
        "additionalProperties": false,
        "description": "Model for user role resource"
      },
      "V3CreateUserRequest": {
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string",
            "description": "EmailAddress",
            "nullable": true
          },
          "olsonTimeZoneId": {
            "type": "string",
            "description": "OlsonTimeZoneId",
            "nullable": true
          },
          "dateTimeDisplayFormat": {
            "type": "string",
            "description": "DateTimeDisplayFormat",
            "nullable": true
          },
          "language": {
            "type": "string",
            "description": "Language",
            "nullable": true
          },
          "enabled": {
            "type": "boolean",
            "description": "Enabled"
          },
          "roleResource": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleResourceModel"
            },
            "description": "list of user role resources",
            "nullable": true
          },
          "admin": {
            "type": "boolean",
            "description": "admin"
          },
          "allGroups": {
            "type": "boolean",
            "description": "full permissions for all groups"
          },
          "groupRoles": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "roles to assign all groups",
            "nullable": true
          },
          "allPolicies": {
            "type": "boolean",
            "description": "full permissions for all policies"
          },
          "policyRoles": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "role to assign all policies",
            "nullable": true
          },
          "globalRolesIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The list of System.Guid mentioning which global roles the user needs to have",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Extension to original model to support global roles addition at user creation"
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://sneakpeek-services.epm.bt3ng.com/oauth/connect/token",
            "scopes": {
              "urn:management:api": "Management API scope"
            }
          }
        }
      }
    }
  }
}
```