---
title: "Assign Roles to User"
slug: "assign-roles-to-user"
updated: 2026-05-26T12:48:31Z
published: 2026-05-26T12:48:45Z
canonical: "developers.cmicglobal.com/assign-roles-to-user"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://developers.cmicglobal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Assign Roles to User

Post/sys-rest-api/rest/1/sduserroles

**UI Location**: SYSTEM DATA - Security- Users- User Maintenance postman-to-openapi

**Body Parameters** The POST request assigns a role to a user based on the provided payload. The payload includes various fields, such as UroleUser and UroleCode each representing different attributes of the user role.

**Request Body**

| Field | Description | Data Type | Required | Example Value |
| --- | --- | --- | --- | --- |
| UroleUser | User ID | string | True | ADAM1 |
| UroleCode | Role code that will be assigned to the user | string | True | PAYADMIN |

**Sample Response Body**

```json
{
    "UroleCode": "",
    "UroleName": "",
    "UroleUser": "",
    "UroleVUuid": "",
    "UroleCreateDate": "",
    "links": [
        {
            "rel": "",
            "href": "",
            "name": "",
            "kind": ""
        }
    ]
}
```

SecurityHTTPType basic

Basic authentication

Header parametersContent-TypestringExampleapplication/vnd.oracle.adf.resourceItem+json

Body parameters<select class='api-response-data' aria-label='Media type'><option value='a71e2fae-97c0-497b-963f-407769e045ca'>application/json</option>
</select>object  Example{
  "UroleUser": "ADAM1",
  "UroleCode": "MASTER"
}

Responses201

Created

HeadersContent-TypestringExampleapplication/vnd.oracle.adf.resourceitem+json
<select class='api-response-data' aria-label='Media type'><option value='60493eaa-f9ee-4ae5-b9ea-4fd66e6d5c60'>application/json</option>
</select>

```json
{
  "UroleCode": "PAYADMIN",
  "UroleName": "Payroll Administrator",
  "UroleUser": "ADAM1",
  "UroleVUuid": "39FC3FEADCC249CDE0630B811DAC5F98",
  "UroleCreateDate": "2025-07-16T15:09:50Z",
  "links": [
    {
      "rel": "self",
      "href": "http://localhost:7101/sys-rest-api/rest/1/sduserroles/39FC3FEADCC249CDE0630B811DAC5F98",
      "name": "sduserroles",
      "kind": "item"
    },
    {
      "rel": "canonical",
      "href": "http://localhost:7101/sys-rest-api/rest/1/sduserroles/39FC3FEADCC249CDE0630B811DAC5F98",
      "name": "sduserroles",
      "kind": "item"
    }
  ]
}
```

object
