# Set sub-account access for a user

Set sub-account access for a user.
Use this endpoint to enable or disable sub-account access by setting the value to `true` or `false`.

Endpoint: PUT /resources/sub-tenants/users/v1/{userId}/access
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `userId` (string, required)

## Header parameters:

  - `frontegg-tenant-id` (string)
    The tenant identifier. Required for requests to api.frontegg.com (or your region) when using a management token. Parsed from the token when using user or API tokens

## Request fields (application/json):

  - `allowAccess` (boolean, required)

