Description

This function retrieves the number of users that can access a directory.

Examples 




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$count_users = $cpanel->api1('Htaccess','showusers', array('directoryname') ); // Call the function.



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $count_users = $cpliveapi->api1('Htaccess','showusers', ['directoryname'] ); # Call the function.

 


<cpanel Module="Htaccess::showusers( $FORM('dir') )">




cpapi1 --user=username Htaccess showusers directoryname



8




Parameters

ParameterTypeDescriptionPossible valuesExample

dir

string

Required

The directory name.

A valid directory name.directoryname

Returns

This function displays the count of users that have access to the directory.