---
title: "Set sub-account access for a user"
method: PUT
path: "/resources/sub-tenants/users/v1/{userId}/access"
tags: ["User management"]
---

# Set sub-account access for a user

`PUT /resources/sub-tenants/users/v1/{userId}/access`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/sub-tenants/users/v1/{userId}/access`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/sub-tenants/users/v1/:userId/access/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `userId` string, required

## Request body

- UpdateSubAccountAccessRequestDto
  - `allowAccess` boolean, required

## Response `200`

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
