---
title: "Get Access Rules on Code Container"
method: GET
path: "/code_containers/{code_container_id}/accessors"
tags: ["Access Control"]
---

# Get Access Rules on Code Container

`GET /code_containers/{code_container_id}/accessors`

## Request

- Base URL: `https://dataops.nexla.io/nexla-api`
- URL: `https://dataops.nexla.io/nexla-api/code_containers/{code_container_id}/accessors`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nexla/apis/nexla-rest-api/docs/code_containers/:code_container_id/accessors/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a list of the access-control rules set for this code container.

## Path parameters

- `code_container_id` integer, required

## Response `200`

Success

- AccessorsResponseSchema[]
  - union
    - object
      - `type` 'ORG'
      - `email_domain` string
      - `client_identifier` string, nullable
      - `access_roles` string[]: This property reflects all the permissions the user/team/organization has to this resource. 1. `collaborator`: The user/team/organization can view the resource but not make any modifications to it. 2. `operator`: The user/team/organization can view the resource and can activate/pause it, but not make any other modifications to it. 3. `administrator`: The user/team/organization has complete administrative rights to this resource. 4. `owner`: This user created the resource and so has complete administrative rights to it.
      - `created_at` string, date-time
      - `updated_at` string, date-time
    - object
      - `type` 'TEAM'
      - `name` string
      - `access_roles` string[]: This property reflects all the permissions the user/team/organization has to this resource. 1. `collaborator`: The user/team/organization can view the resource but not make any modifications to it. 2. `operator`: The user/team/organization can view the resource and can activate/pause it, but not make any other modifications to it. 3. `administrator`: The user/team/organization has complete administrative rights to this resource. 4. `owner`: This user created the resource and so has complete administrative rights to it.
      - `created_at` string, date-time
      - `updated_at` string, date-time
    - object
      - `type` 'USER'
      - `email` string
      - `access_roles` string[]: This property reflects all the permissions the user/team/organization has to this resource. 1. `collaborator`: The user/team/organization can view the resource but not make any modifications to it. 2. `operator`: The user/team/organization can view the resource and can activate/pause it, but not make any other modifications to it. 3. `administrator`: The user/team/organization has complete administrative rights to this resource. 4. `owner`: This user created the resource and so has complete administrative rights to it.
      - `created_at` string, date-time
      - `updated_at` string, date-time

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/nexla/apis/nexla-rest-api.md) - [All operations](https://skmtc.dev/nexla/apis/nexla-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nexla/apis/nexla-rest-api/revisions/ef02be92fe7b?raw)
