Return cPanel account feature access

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

Authorizations:
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

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  verify_user_has_feature \
  user='username' \
  feature='sslinstall'

Response samples

Content type
application/json
{
  • "data": {
    • "has_feature": 1,
    • "query_feature": "sslinstall"
    },
  • "metadata": {
    • "command": "verify_user_has_feature",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}