Working on the command line, I am using the following:
For *any* user I test against, regardless of their suspension status (0/1), I get a complete JSON response.
Suspended is a numeric bool so I believe to be using the proper term and type?
I just want to know if the user I pass is suspended or not.
Reference Docs (could use some examples):
api.docs.cpanel.net
Code:
uapi --output=jsonpretty --user=$user Variables get_user_information api.filter=1 api.filter_column=suspended api.filter_term=1 api.filter_type=eq
Suspended is a numeric bool so I believe to be using the proper term and type?
I just want to know if the user I pass is suspended or not.
Reference Docs (could use some examples):
Introduction
With its world-class support and rich feature set, cPanel & WHM has been the industry-leading web hosting platform for over 20 years. Trusted worldwide by our technology partners WordPress, CloudLinux, LiteSpeed, and more.
