shailesh singh
shailesh singh

Reputation: 1

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

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?

Upvotes: 0

Views: 57

Answers (1)

Jay Lee
Jay Lee

Reputation: 13528

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

Upvotes: 1

Related Questions