# Learn the basics

Once you complete the integration process, [linking your company's Entra ID with the ServiceChanger app](https://servicechanger.gitbook.io/servicechanger.com/getting-started/how-to-get-started), your starting point will encompass the existing Entra ID user database, group configurations, and user-group relationships.

The advantage is that it doesn't directly affect users and their permissions. However, the downside is that there is often a significant issue with data quality. This means it's time to clean up!

## Step 1: Data Cleaner

{% hint style="warning" %}
Before utilizing the [data cleaner feature](https://servicechanger.gitbook.io/servicechanger.com/features/data-cleaner), it is crucial to carefully review the manual and **understand its effects**. Please take the time to familiarize yourself with the functionality and potential consequences outlined here.
{% endhint %}

First, open the "Data Cleaner" tool and start cleaning up all the departments, locations, and job titles. This step is super important before you dive into creating the ABAC model. If you skip this, you might end up building your ABAC model on messy data, which could cause problems later on.

<figure><img src="https://1332728329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMTU9Uyx5cjbGdcEsR3N%2Fuploads%2F6gxXUP0jvFDaNQu1BcQu%2Fimage.png?alt=media&#x26;token=d9b5f938-e422-4491-853b-7f5451942159" alt=""><figcaption></figcaption></figure>

## Step 2: Build your ABAC model using the Group Mining feature.

### 2.1 Generating All Attributes

Once setup is complete, it's time to start building. Navigate to the "Attributes" page and click the "Actions" button.

With a single click, you can generate all attributes, and users will be automatically assigned to their respective attributes, no manual work required!

<figure><img src="https://1332728329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMTU9Uyx5cjbGdcEsR3N%2Fuploads%2FMMTKiuXYJ6dm2w1pkaeh%2Fimage.png?alt=media&#x26;token=6ef814a3-b361-4985-8ac5-4115a2d17a0b" alt=""><figcaption></figcaption></figure>

### 2.2 Add Groups to Attributes

{% hint style="warning" %}
We highly recommend reading the '[Attribute Hierarchy: A Simple Guide](https://servicechanger.gitbook.io/servicechanger.com/getting-started/attribute-hierarchy-a-simple-guide)' before you start.
{% endhint %}

{% hint style="info" %}
**Bottom-Up Approach:** ServiceChanger recommends leveraging existing data rather than enforcing rigid top-down models. This ensures a faster and smoother implementation.
{% endhint %}

Now, it's time to use the '[Suggestions](https://servicechanger.gitbook.io/servicechanger.com/features/intelligent-group-recommendations)' button for each attribute. This feature provides intelligent recommendations based on your current membership data, helping you build your model efficiently.

{% hint style="success" %}
For an even faster setup, take advantage of the Bulk Feature. You can find it under Attributes > Actions > Bulk Group Assigner, allowing you to assign groups efficiently in just a few clicks. 🚀<br>

**Warning:** This feature performs the '[Group Mining (Suggestions)](https://servicechanger.gitbook.io/servicechanger.com/features/intelligent-group-recommendations)' process in bulk. It will create attribute-to-group mappings (and, in turn, user-to-group relationships) all at once.<br>

Because it can affect many groups and users, please proceed carefully and be aware of its impact.
{% endhint %}

By following this sequence, it ensures the establishment of a highly effective, maintainable, and clean [Attribute-Based Access Control model](https://servicechanger.gitbook.io/servicechanger.com/features/attribute-based-access-control):

1. Departments&#x20;
2. Locations
3. Job Titles *(on this attribute you can also remove groups from users)*

This approach keeps your model structured, scalable, and easy to manage.

<figure><img src="https://1332728329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMTU9Uyx5cjbGdcEsR3N%2Fuploads%2FzHagbRtkotAUOb9MfVqz%2F2024_02_10_16_00_49_Service_Changer_Saas_Dashboard_Figma.png?alt=media&#x26;token=d6a14674-7503-4300-b698-226c2e50a9f2" alt=""><figcaption></figcaption></figure>
