Assign Roles to User
  • 01 Oct 2025
  • 1 Minute to read
  • Dark
    Light

Assign Roles to User

  • Dark
    Light

Article summary

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

FieldDescriptionData TypeRequiredExample Value
UroleUserUser IDstringTrueADAM1
UroleCodeRole code that will be assigned to the userstringTruePAYADMIN

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