How can we improve WHMCS?

Share, discuss and vote for what you would like to see added to WHMCS

Set a default adminuser for Developer Internal API

  • Websavers shared this idea 7 years ago
  • Developers
  • 1 Comment


1 Votes
When working with the Internal API it would be really nice if WHMCS would automatically set the adminuser by default to either:

System: when the API call is coming from an automated hook (like cron or automatic module provisioning)
The currently logged in admin: when it's triggered by a logged in admin

This way the adminuser value is only required to be set when the dev wishes to specifically override it.

I'd love to be able to more easily use Internal API code within my modules, but it's fairly annoying to ask the module user to supply an admin user in the module's settings, then load the setting into the API call.... especially when it doesn't seem like it should be all that necessary.