Return cPanel account feature access

This function checks whether a user has access to a feature on a feature list.

SecurityBasicAuth
Request
query Parameters
feature
required
string

The feature's ID.

Note:

Call WHM API 1's get_feature_names function to view available features.

Example: feature=sslinstall
user
required
string <username>

The cPanel account username.

Example: user=username
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/verify_user_has_feature
Request samples
whmapi1 --output=jsonpretty \
  verify_user_has_feature \
  user='username' \
  feature='sslinstall'
Response samples
application/json
{
  • "data": {
    • "has_feature": 1,
    • "query_feature": "sslinstall"
    },
  • "metadata": {
    • "command": "verify_user_has_feature",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}