---
title: "Set organization access permissions for a role"
method: PATCH
path: "/v2/user/role/{roleId}/permissions/organizations"
tags: ["management"]
---

# Set organization access permissions for a role

`PATCH /v2/user/role/{roleId}/permissions/organizations`

Set up to 100 organization access permissions for a technician role

## Path parameters

- `roleId` integer, required

## Request body

- object[]
  - `organizationId` integer, required — Organization identifier
  - `permission` 'default' | 'noAccess' | 'view' | 'viewUpdate' | 'viewUpdateDelete', required — Permissions for the organization.

## Response `200`

Role organization permissions

- object
  - `id` integer
  - `name` string — Role name
  - `description` string — Role description
  - `organizationPermissions` object[] — Organization permissions updated for the provided role
    - `organizationId` integer — Organization identifier
    - `organizationName` string — Organization name
    - `permission` 'default' | 'noAccess' | 'view' | 'viewUpdate' | 'viewUpdateDelete' — Permissions for the organization.

## Other responses

- `400` — Bad request or request limit reached
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Role or organization not found

---

[API](https://skmtc.net/ninjarmm/apis/ninjaone-public-api-2-0.md) · [All operations](https://skmtc.net/ninjarmm/apis/ninjaone-public-api-2-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ninjarmm/ninjaone-public-api-2-0/revisions/753f26d46650/schema)
