Reputation: 2489
I have one main organizational unit which includes most of my users in the Google Admin Directory. However I also have some sub-organizational units under the main one which also contain users.
To retrieve all users I am using the Directory API. When I want only to retrieve users of one sub- organizational unit I add orgUnitPath:/MainOU/subOU1
as a query parameter.
But how can I only retrieve users which are in the main OU but NOT in any sub OU? When I use orgUnitPath:/MainOU
it also includes all users in any sub OU.
Upvotes: 1
Views: 1105
Reputation: 26836
Upvotes: 1