Filters

Prevent selected people or groups from appearing in the directory.

Administrator rights are required to create and edit Filters.

The Filters Page allows administrators to exclude certain people or groups from appearing in the directory. This feature provides the flexibility to tailor the directory to fit your oranizations needs via custom rules, for example excluding specific departments, or hiding inactive accounts from view.

Filters work as boolean expressions that evaluate one or more fields within Entra ID, excluding people who meet the specified conditions. For example: JobTitle Contains 'Intern' or Country Equals 'Germany'.

Adding a Filter

Adding a Filter in TeamDirectory

1. Add a New Filter

On the Filters Page from within TeamDirectory's Settings, click the 'Add New Filter' button to start creating a filter.

2. Add an Expression

Click 'Add an Expression' to define the criteria for the filter.

3. Select a Field and Operator

From the Field Name drop-down, select an Entra ID field that you wish to filter by (e.g. Department or Job Title).

From the Operator drop-down, choose how you want the field to be evaluated. Operators include options such as:

  • Contains: The value must be part of the selected field.

  • Equals: The value must exactly match the field.

Enter one or more values into the Values box.

For example, to exclude users from the Sales department, you could select 'Department' as the field, 'Contains' as the operator, and enter 'Sales' in the values box.

4. Add Additional Fields (AND Logic)

You can add additional fields to the same expression. Each field added within the same row will be evaluated using AND logic, meaning all conditions must be true for the filter to apply. For example, you can filter out users who are in both Sales and HR departments by adding another field to the row.

5. Add Additional Expressions (OR Logic)

You can also add additional expressions to your filter. These additional expressions are evaluated using OR logic, meaning if any expression satisfies its conditions, the filter will hide those users.

6. Save the Filter

Once you have defined the conditions and expressions, click 'Save' to apply the filter. The appropriate users will be excluded from the directory based on the filter criteria.

All of your Filters are listed on the Filters Page, from here they can be enabled, disabled, or deleted.

Next Steps