Jump to content
Sign in to follow this  
dh42

API Issue - Getusers

Recommended Posts

I am having an issue trying to get all of the customer accounts from my shop via the api. I have an api account set up with a profile that allows all permissions to the api user. When I send over a request to Getusers I get this returned. 

result=error;message=Invalid Permissions: API action "getusers" is not allowed

I cannot figure out why, other api methods like Getclients work, but getusers does not. 

whmcs version 7.8.3 
 

Share this post


Link to post
Share on other sites
On 28/01/2021 at 18:00, dh42 said:

I cannot figure out why, other api methods like Getclients work, but getusers does not. 

users would only apply to v8 or later... if you're still on v7.8, then clients are what you should be looking for and so getclients is what you should be using.

https://github.com/WHMCS/developer-docs/blob/master/api-reference/getclients.md

Share this post


Link to post
Share on other sites
20 hours ago, dh42 said:

That is what I settled with in the end. It was just confusing since I assume the docs are wrong, they say getusers has been available since v1.  https://developers.whmcs.com/api-reference/getusers/

I think it's more a case of that's v1 of that API code... though I can see the inconsistency because if an old API is updated or deprecated for v8, then it's version number gets moved to 8.0

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated