Assign Roles to User

Prev Next
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

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

Security
HTTP
Type basic

Basic authentication

Header parameters
Content-Type
string
Exampleapplication/vnd.oracle.adf.resourceItem+json
Body parameters
object
Example{ "UroleUser": "ADAM1", "UroleCode": "MASTER" }
Responses
201

Created

Headers
Content-Type
string
Exampleapplication/vnd.oracle.adf.resourceitem+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
Copyright © 2024 CMiC All Rights Reserved