从Google Apps检索用户时,如何应用过滤器以排除某些用户 [英] How to apply filters to exclude some users while retrieving users from Google Apps

查看:55
本文介绍了从Google Apps检索用户时,如何应用过滤器以排除某些用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以应用过滤器来获取特定用户,同时根据givenName,familyName和email属性检索所有用户. 但是要求是应用过滤器,以便在检索所有用户时排除某些用户,例如我不希望用户拥有GivenName = admin *.我知道,一旦所有用户都被Google API返回,我们就可以在本地进行后期处理,但这可能会对性能产生影响,从而在本地排除不需要的用户.

有什么方法可以将过滤器传递给google API,以便返回所有用户(不想要的用户除外)?

解决方案

用户搜索查询没有或"运算符.您需要在本地过滤所有结果.

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?

解决方案

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

这篇关于从Google Apps检索用户时,如何应用过滤器以排除某些用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆