Skip to content

Configure Server-Side Filtering in Entra ID (AAD)

Privacera supports server-side filtering when syncing users and groups from Azure Active Directory (AAD). When using server-side filtering, UserSync can not use incremental sync and will perform a full search every sync cycle.

Setup

Go to the Privacera Manager host and navigate to the Privacera Manager installation directory:

Bash
cd ~/privacera/privacera-manager
vi config/custom-vars/vars.privacera-usersync.azuread.yml

Ensure that incremental search is disabled:

YAML
AZURE_AD_SEARCH_INCREMENTAL_ENABLED: "false"

Add or update the following variables based on desired configuration:

YAML
1
2
3
4
5
6
#eq,sw defult is eq if not configured eg:- eq;abc.def@privacera.com,ghi.jkl@privacera.com 
AZURE_AD_FILTER_USER_LIST : ""
#eq,sw defult is eq if not configured eg:- eq;abc-testapp,abc-usersync
AZURE_AD_FILTER_SERVICEPRINCIPAL_LIST : ""
#eq,sw defult is eq if not configured eg:- eq;PRIVACERA-AB-GROUP-00,RG_PRIVACERA_ADMIN
AZURE_AD_FILTER_GROUP_LIST : ""
The variables are used to filter users and groups based on Microsoft Graph API filters. The filters are applied to the user and group objects returned by the Microsoft Graph API.

Values are formatted as operator;filter,filter,filter. The operator can be eq (equals) or sw (starts with). The filter is the value to filter on. Multiple filters can be specified by separating them with a comma.

Because Microsoft Graph filters in this connector only support eq and sw (see above), patterns such as "ends with" or mid-string wildcards cannot be expressed in the server-side variables alone. Use a manage list (AZURE_AD_MANAGE_GROUP_LIST, AZURE_AD_MANAGE_USER_LIST, or AZURE_AD_MANAGE_SERVICEPRINCIPAL_LIST) when you need wildcard or other pattern matching.

Entra ID returns objects that match the server-side filter; UserSync then keeps only those that also match the manage list. When a manage list is set, objects that do not match any entry (including wildcard entries) on that list are ignored.

For example, to sync groups whose names start with Group_ and end with Admin, narrow the Graph request with a starts-with filter and restrict results with a wildcard on the manage list:

YAML
AZURE_AD_FILTER_GROUP_LIST : "sw;Group_"
AZURE_AD_MANAGE_GROUP_LIST : "Group_*Admin"

Restart Privacera Services

Bash
1
2
3
cd ~/privacera/privacera-manager
./privacera-manager.sh setup
./pm_with_helm.sh upgrade