# Selection

All rules must start with an initial selection of users, these users can then be further filtered down, until an action is performed on them.

The initial selection of users can be done by:

1. **Select Users from Groups** - Selects all the users from one or more groups.
2. **Select Users by Email Domain** - Selects all the users with a partial or exact email domain match.
3. **Select Individual Users** - Selects multiple individual users.

<figure><img src="https://3637913942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohrITcpqnalkwz3hXr9a%2Fuploads%2FgoBz9noTVy6f51QveIbJ%2FSelection%20Components.png?alt=media&#x26;token=d2d52b90-c993-4c75-85bc-d6a2f571e368" alt=""><figcaption><p>Selection Components</p></figcaption></figure>

***

### Select Users from Groups

When choosing one or more groups, the unique number of users between those groups is added to the Selection component.

e.g. If *Daniel* and *Tom* are in Group A, and *Tom* and *Sarah* are in Group B. If Group A and Group B are selected, then *Daniel*, *Tom* and *Sarah* (3 users) will be added to the Selection component.

<figure><img src="https://3637913942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohrITcpqnalkwz3hXr9a%2Fuploads%2F6C4nbgqTnsUiQS2ioBTa%2FSelect%20Users%20From%20Groups.png?alt=media&#x26;token=359aba29-6cc6-4c87-9c86-dd5b1b81d38b" alt=""><figcaption><p>Select Users from Groups component</p></figcaption></figure>

### Select Users by Email Domain

When using the **Domain Contains** field, any users with a partial match to the email domain entered will be selected. This is particularly useful if wanting to match all users with a **.com** in their domain, or only Australian based employees with a **.au** in their domain.

When using the **Exact Domain** field, any users with an exact match to the email domain entered will be selected. This is particularly useful if wanting to match all users using their private email addresses, such as **gmail.com**.

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*

<figure><img src="https://3637913942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohrITcpqnalkwz3hXr9a%2Fuploads%2FdAWDibXWEmgr2qV4Hl10%2FSelect%20Users%20by%20Email%20Domain.png?alt=media&#x26;token=4d9f595a-f548-4459-a555-e8d2d9a8c537" alt=""><figcaption><p>Select Users by Email Domain component</p></figcaption></figure>

### Select Specific Users

Choosing one or more individual users is very useful for scenarios targeting specific users. For example:

1. Ensuring contractors are removed on their contract end date
2. If specific users have been granted special heightened Admin access, it can automatically be revoked on a particular date.
3. If an individual is being seconded to another team, allowing them access to their projects via a group until a particular date.
4. If an individual is going on long service leave, removing their product access for that time period.

<figure><img src="https://3637913942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohrITcpqnalkwz3hXr9a%2Fuploads%2FOYHkEwb2P8m99ujWzANA%2FSelect%20Specific%20Users.png?alt=media&#x26;token=c93141eb-ae81-4f36-a86d-6b233ae90e37" alt=""><figcaption><p>Select Specific Users component</p></figcaption></figure>

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