[API] retrieve list of users associated with an entity

Added by Jeremy SPIESSER 3 months ago

Hello,
Is there a way to retrieve list of users associated with an entity via the xivo_confd API?

Something like : GET /1.1/users/{entity_id}/users
Or: GET /1.1/entities/{entity_id}/users

I tried using the search parameter of GET /users / without success (this field parameter are not documented very well)

I may not be right in my reflection to retrieve this info so,
Thank you in advance for your answers !

Have a good day,
Jeremy


Replies (2)

RE: [API] retrieve list of users associated with an entity - Added by François Blackburn 3 months ago

You right, there are missing documentation on possibles keys/values of the query string.

You need to have the entity name

 GET /1.1/users?entity=<entity_name>

RE: [API] retrieve list of users associated with an entity - Added by Jeremy SPIESSER 3 months ago

it's perfect.
Thank you very much for your answer

(1-2/2)