# cPanel API 2 Modules - Htaccess

Warning:
The cPanel API 2 system is deprecated. We **strongly** recommend that you use [UAPI](https://api.docs.cpanel.net/cpanel/introduction) instead of cPanel API 2.

## Introduction

The `Htaccess` module manages user access to password-protected directories.

div
Important:

When you enable a non-Standard Node server profile, the system disables API calls associated with that profile's disabled roles.

## Available functions

* [cPanel API 2 Functions - `Htaccess::listuser`](/cpanel-api-2/cpanel-api-2-modules-htaccess/cpanel-api-2-functions-htaccess-listuser) — This function retrieves a directory's authorized users from the `.htaccess` file.
* [cPanel API 2 Functions - `Htaccess::listusers`](/cpanel-api-2/cpanel-api-2-modules-htaccess/cpanel-api-2-functions-htaccess-listusers) — This function retrieves a directory's authorized users from the `.htaccess` file.