managePermissions

Description

With this function, you can manage permissions.

Parameters

Parameter name Value Description Possible values Example
section String Required
The section that you want to reset the permissions in.
  • whm
  • cpnel
 
username String The user that you want to set specific permissions.    
permissions[] List
List of Boolean.
permissions[permissionKey]=value
To view the possible values click on WHM Permissions Object/cPanel Permissions Object permissions[0]=1&permissions[1]=0

Returns

Doesn't return any data.

Example