I have a script connected to the API to list all my users. Until now, my script was doing a special display for admins (vs regular users). For this I was looking at the is_admin
flag on users.
But recently we start to have users with the “Account setting” role
Is there a way to identify them through the API?
r2d2
December 30, 2021, 8:57pm
2
Hi,
Are you referring to the Get One User and Get Current User endpoints? Both of them have an is_admin flag in the response
https://developers.pipedrive.com/docs/api/v1/Users#getUsers
Could you please share further details in this format ?
If you stumble across an issue that you observe with the REST APIs, please make sure you provide the following details:
Describe the issue (if possible, with the scenario, logs, screenshots)
How does it affect your use case?
Which endpoint is causing the issue?
What is the payload structure* ?
What is the mode of authentication (API token / OAuth)*?
What is the response code and error message that you get?
What is the value of the x-correlation-id response header that you received?
…
Feel free to create a new topic if the issue still persists.