## Revoke user access

`client.autoScribe.users.revokeAccess(UserRevokeAccessParamsbody, RequestOptionsoptions?): UserRevokeAccessResponse`

**post** `/v1/autoScribe/users/revoke-access`

Deactivates a user's access to the system. The user will no longer be able to log in, create reports, or access studies. User data is preserved and can be reactivated later.

### Parameters

- `body: UserRevokeAccessParams`

  - `userId: string`

    User ID to revoke access for. Format: usr_{32-hex-chars}

### Returns

- `UserRevokeAccessResponse`

  Response for revoking user access in AutoScribe

  - `success: boolean`

  - `message?: string`

### Example

```typescript
import Avara from 'avara-software';

const client = new Avara({
  apiKey: process.env['AVARA_API_KEY'], // This is the default and can be omitted
});

const response = await client.autoScribe.users.revokeAccess({
  userId: 'usr_1234567890abcdef1234567890abcdef',
});

console.log(response.success);
```

#### Response

```json
{
  "success": true,
  "message": "User access revoked successfully"
}
```
