---
title: "Retrieve Company Access By Company Code and User ID"
slug: "retrieve-company-access-by-company-code-and-user-id"
updated: 2026-05-26T12:48:31Z
published: 2026-05-26T12:48:45Z
canonical: "developers.cmicglobal.com/retrieve-company-access-by-company-code-and-user-id"
---

> ## 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 Company Access By Company Code and User ID

Get/sys-rest-api/rest/1/sdcompanyaccess

**Get Company Access By Company Code and User ID** This endpoint retrieves users' company access information with the option to filter and optimize the request performance using the following parameters:

Finder Name: SdCompanyAccessFinder

Request Parameters: UserID (query parameter) - User assigned to Company CompCode (query parameter) -Company Code

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

```json
{
"CompsecCompCode": "",
"CompsecCompName": "",
"CompsecUser": "",
"CompsecVUuid": "",
"links": [
{
"rel": "",
"href": "",
"name": "",
"kind": ""
}
         ]
}
```

SecurityHTTPType basic

Basic authentication

Query parameterslimitintegerExample25
offsetintegerExample0
totalResultsbooleanExampletrue
finderstringExampleSdCompanyAccessFinder; UserID=IBRAHIM,CompCode =ZZ

Responses200

OK

HeadersContent-TypestringExampleapplication/vnd.oracle.adf.resourcecollection+json
<select class='api-response-data' aria-label='Media type'><option value='0a67fee1-f6af-47b4-99c5-e5c1ce7a0185'>application/json</option>
</select>

```json
{
  "items": [
    {
      "CompsecCompCode": "ZZ",
      "CompsecCompName": "CMiC-ZZ  Test Company Incorp",
      "CompsecUser": "IBRAHIM2",
      "CompsecVUuid": "37C75EA13244BB82E0630B811DACFF10",
      "links": [
        {
          "rel": "self",
          "href": "http://localhost:7101/sys-rest-api/rest/1/sdcompanyaccess/37C75EA13244BB82E0630B811DACFF10",
          "name": "sdcompanyaccess",
          "kind": "item"
        },
        {
          "rel": "canonical",
          "href": "http://localhost:7101/sys-rest-api/rest/1/sdcompanyaccess/37C75EA13244BB82E0630B811DACFF10",
          "name": "sdcompanyaccess",
          "kind": "item"
        }
      ]
    }
  ],
  "totalResults": 1,
  "count": 1,
  "hasMore": false,
  "limit": 25,
  "offset": 0,
  "links": [
    {
      "rel": "self",
      "href": "http://localhost:7101/sys-rest-api/rest/1/sdcompanyaccess",
      "name": "sdcompanyaccess",
      "kind": "collection"
    }
  ]
}
```

object
