Retrieve User Roles By User ID, Role Code and Created Date
  • 01 Oct 2025
  • 1 Minute to read
  • Dark
    Light

Retrieve User Roles By User ID, Role Code and Created Date

  • Dark
    Light

Article summary

Get
/sys-rest-api/rest/1/sduserroles

Retrieve User Roles By User ID, Role Code and Created Date:
This endpoint retrieves users roles information with the option to filter and optimize the request performance using the following parameters:

Finder Name:
SdUserRolesFinder

Request Parameters:
UserID (query parameter) - User ID
RoleCode (query parameter) -Role Code

CreateDate (query parameter) -Created Date

Response Body:
The response will contain the details of the user roles in the JSON format. Here is an example of the response body:

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

Security
HTTP
Type basic

Basic authentication

Query parameters
limit
integer
Example25
offset
integer
Example0
totalResults
boolean
Exampletrue
finder
string
ExampleSdUserRolesFinder; UserID=ADAM1,RoleCode=MASTER,CreateDate =2025-07-01
Responses
200

OK

Headers
Content-Type
string
Exampleapplication/vnd.oracle.adf.resourcecollection+json
{
  "items": [
    {
      "UroleCode": "MASTER",
      "UroleName": "Master of Everything",
      "UroleUser": "ADAM1",
      "UroleVUuid": "3A0D2E2705CA51D5E0630B811DAC895F",
      "UroleCreateDate": "2025-07-16T13:50:48Z",
      "links": [
        {
          "rel": "self",
          "href": "http://localhost:7101/sys-rest-api/rest/1/sduserroles/3A0D2E2705CA51D5E0630B811DAC895F",
          "name": "sduserroles",
          "kind": "item"
        },
        {
          "rel": "canonical",
          "href": "http://localhost:7101/sys-rest-api/rest/1/sduserroles/3A0D2E2705CA51D5E0630B811DAC895F",
          "name": "sduserroles",
          "kind": "item"
        }
      ]
    }
  ],
  "totalResults": 1,
  "count": 1,
  "hasMore": false,
  "limit": 25,
  "offset": 0,
  "links": [
    {
      "rel": "self",
      "href": "http://localhost:7101/sys-rest-api/rest/1/sduserroles",
      "name": "sduserroles",
      "kind": "collection"
    }
  ]
}
object