How to apply filters to exclude some users while retrieving users from Google Apps

独自空忆成欢 提交于 2019-12-25 07:58:10

问题


I can apply the filter to get the specific users while retrieving all the users based on givenName, familyName and email attributes. But the requirement is to apply the filter such that it excludes some users while retrieving all the users e.g i don't want users which has givenName=admin*. I know that we can do post processing locally once all the users has been returned by Google API but it may have performance impact to exclude the unwanted users locally.

Is there any way to pass the filter to google APIs so that it return the all the users excluding the unwanted users?


回答1:


The users search query does not have a not or negate operator. You'll need to filter all results locally.



来源:https://stackoverflow.com/questions/37535136/how-to-apply-filters-to-exclude-some-users-while-retrieving-users-from-google-ap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!