From 78c2b88b3c114e81914820b0f016b34e38441283 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 5 Dec 2017 13:31:17 -0500 Subject: [PATCH] user/group filtering for azure ad --- .../directory-connector/user-group-filters.md | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/_articles/directory-connector/user-group-filters.md b/_articles/directory-connector/user-group-filters.md index 77dd68a7..a8e98368 100644 --- a/_articles/directory-connector/user-group-filters.md +++ b/_articles/directory-connector/user-group-filters.md @@ -64,14 +64,28 @@ Users that are a member of the 'Heroes' group, either directly or via nesting ## Azure Active Directory -The Microsoft Graph API provides advanced filtering capabilities through the `$filter` parameter using OData syntax. This parameter is exposed to you in both the user and group filters of the Directory Connector. - -Read more about the `$filter` parameter with OData syntax here: +The Microsoft Graph API does not provide a way to filter groups and users directly, however, you can use our custom filtering syntax that allows you to exclude or include a comma separated list of group names and user emails. #### Example +Groups: + ``` -startswith(displayName,'J') +include:Group A,Sales People,My Other Group +``` + +``` +exclude:Group C,Developers,Some Other Group +``` + +Users: + +``` +include:joe@company.com,bill@company.com,tom@company.com +``` + +``` +exclude:joe@company.com ``` ## G Suite