Get other roles than users with API

arma_admin

Bronze Partner
Advanced Certified
Joined
Jun 24, 2024
Messages
8
Reaction score
4
Hi,

We are trying to show logged in agents of a call queue on our own dashboard.
Because we did not manage to get the loggedin agents directly from the call queue with the 3CX API we went for a diffrent aproach.

Now we are reading out the status of all the users and if it is set to "Custom 1" they get shown on the dashboard.
So far so good, but now we have the problem, when ever someone has an other role than "user", for example "System Owner", we are not able to get the current status, because they are not shown under "Users" with the API call.

Is there a way to get all the Users no matter the role?

Here is the api call we used:

GET https://{{Domain}}/xapi/v1/Users
 
Update:
We just found the problem.
The API user was system administrator and not system owner.
Which meant he could not read any users with higher permissions than him self.
 
  • Like
Reactions: Evolute IT

Members Online Now

Forum statistics

Threads
111,831
Messages
589,277
Members
164,660
Latest member
RJenkinsROCK