---
title: "Retrieve User Roles By User ID, Role Code and Created Date"
slug: "retrieve-user-roles-by-user-id-role-code-and-created-date"
updated: 2026-05-26T12:53:14Z
published: 2026-05-26T12:53:48Z
canonical: "developers.cmicglobal.com/retrieve-user-roles-by-user-id-role-code-and-created-date"
---

> ## 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.

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

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:

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

SecurityHTTPType basic

Basic authentication

Query parameterslimitintegerExample25
offsetintegerExample0
totalResultsbooleanExampletrue
finderstringExampleSdUserRolesFinder; UserID=ADAM1,RoleCode=MASTER,CreateDate =2025-07-01

Responses200

OK

HeadersContent-TypestringExampleapplication/vnd.oracle.adf.resourcecollection+json
<select class='api-response-data' aria-label='Media type'><option value='123931c5-9de9-4b06-ad73-6fa77d0446aa'>application/json</option>
</select>

```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
