---
title: "Update device access for end user"
method: PATCH
path: "/v2/user/end-user/{id}/device-access"
tags: ["management"]
---

# Update device access for end user

`PATCH /v2/user/end-user/{id}/device-access`

Add or remove up to 100 accessible devices for a specific end user by their ID

## Path parameters

- `id` integer, required

## Request body

- object — Patch end user accessible devices request payload
  - `addDeviceIds` integer[] — List of device IDs to add access for the end user
  - `removeDeviceIds` integer[] — List of device IDs to remove access for the end user

## Response `200`

End user accessible devices updated

- object
  - `id` integer — User identifier
  - `uid` string, uuid — User universally unique identifier
  - `enabled` boolean — User access status
  - `firstName` string — First name
  - `lastName` string — Last name
  - `email` string — Email address
  - `phone` string — Phone number
  - `organizationId` integer — Identifier of organization for end-users
  - `fullPortalAccess` boolean — Has full portal access
  - `mustChangePw` boolean — Must change password during next login
  - `mfaConfigured` boolean — At least one MFA method is configured
  - `scimUser` boolean — User created by SCIM
  - `authType` string — Authentication type, NATIVE or SSO
  - `invitationStatus` 'REGISTERED' | 'PENDING' | 'EXPIRED' — User invitation status
  - `assignedDeviceIds` integer[] — Device IDs which user is assigned
  - `accessibleDeviceIds` integer[] — Device IDs which user has access to
  - `roles` string[] — A list of role names assigned to the user. This is provided when the 'includeRoles' query parameter is set to 'true'
  - `managerUid` string, uuid — Manager identifier

## Other responses

- `400` — Bad request or invalid user type
- `401` — Unauthorized
- `403` — Forbidden
- `404` — User 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/versions/753f26d46650/schema)
