0

Correct me if I'm wrong but it appears that the admin-sdks's Users>list operation doesnt support searching users by ID (According to the docs here).

For example I use the Members api to get all the members of a given group. It returns a list or User Ids. The only way to fetch data about those users is to call the get operation for each user. Seems pretty inefficient to me.

How come this functionality is not implemented (or perhaps I'm missing something)?

Grim
  • 937
  • 10
  • 24

1 Answers1

0

Search feature means you have a pattern and you want the list of all entities which relate to given pattern. It assumes you don't have the unique id of the entity you need. The output of search feature is the list of unique ids with optional additional minimal information which matches to search pattern. To get full information of the individual entity, you need to use unique id and use get information feature.

However, if you already have the unique id, then you don't need the search function. Directly use get information feature.

So google has provided sufficient functionality. If you already have userid, why using search call, use retrieve user call directly.

Shashwat Kumar
  • 5,159
  • 2
  • 30
  • 66
  • Seems pretty wasteful to have to use the `get` call on each user to fetch information when you want to get details for a bunch of users. For example there is no convenient way to get user information of all members of a certain group. Other similar directory apis I worked with provide such functionality. – Grim Oct 18 '17 at 14:13