# Filters

The initial selection of users can be reduced further, with the Filter component. Users can be removed based on their group membership, their email domain or their product activity. Filters can be combined together to achieve your automation goals:

1. Group Membership Filter
2. Exclude Group Members
3. Filter Users by Email Domain
4. Product Activity Filter (coming soon)

<figure><img src="https://3637913942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohrITcpqnalkwz3hXr9a%2Fuploads%2F8ARbBQKBgtNwr5xD0sDS%2FFilter%20Components.png?alt=media&#x26;token=074b594e-23df-474f-8c53-749fb85e2b18" alt=""><figcaption><p>Filter Components</p></figcaption></figure>

***

### Group Membership Filter

This filter will only **keep users** if they are **within at least one of the selected groups**.

<figure><img src="https://3637913942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohrITcpqnalkwz3hXr9a%2Fuploads%2Fb6CYtUS7WTgDtGusTekE%2FFilter%20Group%20Membership.png?alt=media&#x26;token=a9eab77b-77ca-4b81-a4ab-ad39244d629b" alt=""><figcaption><p>Group Membership Filter</p></figcaption></figure>

### Exclude Group Members

This filter will **remove users** if they are **within at least one of the selected groups**.

<figure><img src="https://3637913942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohrITcpqnalkwz3hXr9a%2Fuploads%2FFO5w2AqVeMDFKaMmzjHr%2FFilter%20Exclude%20Group%20Members.png?alt=media&#x26;token=bb016949-fcfa-46b4-bbe8-b790a1c64ebc" alt=""><figcaption><p>Exclude Group Members</p></figcaption></figure>

### Filter Users by Email Domain

This filter will only **keep users** if they their email domain **partly contains** or **exactly matches** what has been entered.

When using the **Domain Contains** field, any users with a partial match to the email domain entered will be kept. e.g. adding **smol** would match all users with **smolsoftware.com**, **smolsoftware.com.au** and **smol.com**.

When using the **Exact Domain** field, any users with an exact match to the email domain entered will be kept. e.g. adding **smolsoftware.com** would only match users with **smolsoftware.com** emails domains.

When using both the **Domain Contains** field and **Exact Domain** field, the fields will be treated as **OR** when selecting users. e.g. **Domain Contains** = *gmail* **OR** **Exact Domain** = *smolsoftware.com*

Use the **Exclude Mode** toggle, to exclude users with that match the domain criteria. e.g. **Exclude** + **Exact domain** = *smolsoftware.com* will remove any selected users *smolsoftware.com* email from your current selection criteria.

<figure><img src="https://3637913942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohrITcpqnalkwz3hXr9a%2Fuploads%2FrmmL9rulQWD1D55mYUAu%2FFilter%20Users%20by%20Email%20Domain.png?alt=media&#x26;token=dae2772b-5655-4810-ad57-3a085967c284" alt=""><figcaption><p>Filter Users by Email Domain</p></figcaption></figure>

### Product Activity Filter (coming soon)

This filter will only keep users who have access to the product selected **AND** have no recorded product activity for the number of days selected.

***

### Simple Filter Combinations

Combining filters will progressively remove users from your original selection component. For example:

1. Choose '**Select Users by Email Domain**'. Configure the component users to select all users with a **.com.au** in their domain.
2. Select a filter '**Exclude Group Members**' with the group '**org-admins**'. To remove any organization admin users from the list of users.
3. Select '**Product Activity Filter**', for Confluence and set the **inactive days to 60**.
4. Select '**Add Users to Groups**' as your action, and add users into a group called '**Marked for removal**'
5. Select '**Create Live'**

Only Users who have a an email address with a *.com.au* prefix + who are *not organization admins*, + who have been *inactive in confluence for 60 days or more*, will be added to the group 'Marked for removal'

<figure><img src="https://3637913942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohrITcpqnalkwz3hXr9a%2Fuploads%2FKdgPpD1wljLSqjSVWSl6%2FSimple%20Filter%20combination.png?alt=media&#x26;token=60d0ff34-7638-4cbd-86a5-2702685316a3" alt=""><figcaption><p>Simple filter combination</p></figcaption></figure>

### Advanced Filter Combinations

After creating a simple filter combination, customers can use the workflow diagram, to navigate to a previous component, and create a new filter or action branch. Allowing for large complex rules that perform multiple actions.

<figure><img src="https://3637913942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohrITcpqnalkwz3hXr9a%2Fuploads%2FqkGzYwWACEqnMtdWjSNv%2FAdvanced%20Filter%20combination.png?alt=media&#x26;token=92cdf79e-5c35-4d34-937e-987425c28742" alt=""><figcaption><p>Advanced filter combination</p></figcaption></figure>

Got a question? Check out our [FAQs](https://docs.smolsoftware.com/features/faqs) or email us at <hello@smolsoftware.com>&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.smolsoftware.com/features/overview/filters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
