How can we improve WHMCS?

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

Add API action to associate user to client

  • SiteHost Developers shared this idea 3 years ago
  • Developers
  • 2 Comments


Currently, with the API, we are able to create a new user via the AddUser action but there is no way to directly associate the user to an existing client (it can be done via the admin dashboard).

There is an action CreateClientInvite that comes close but it is not suitable for some use cases such as bulk migration of users from another hosting management system to WHMCS.

It is probably not too difficult to achieve that via database queries but it will be good to have an API action for it since we already have actions for DeleteUserClient, GetUserPermissions, and UpdateUserPermissions.

2 Comments

Login to post a comment.

You’re right! Adding an API action like AssociateUserToClient would fill this gap, especially for bulk migrations and automation purposes. The absence of such a feature complicates tasks that should be seamless. While CreateClientInvite helps in some cases, it doesn't cover scenarios like silent user association without manual input.

https://fastfoodsimulator.io/
We would also need a hook for that. We have a third party application where we need to sync the associated users of a client for SSO. they need to be logged in personally identified with their own login.