# AAD - Azure Active Directory

Azure AD is the **primary data source** in SCA and integrates your organization’s user profiles to provide access to company-wide contacts. Contacts are queried via the **Microsoft Graph API**, and accounts are managed in your [**Microsoft Entra ID (Azure AD) tenant**](https://entra.microsoft.com/).

#### App Configuration Parameters

**Defaults (**[**`SecContacts.Defaults`**](/documentation/app-configuration-policy-name-values-for-sca/sca-configuration-seccontacts.defaults.md)**):**

* [**AAD\_Enabled**](/documentation/app-configuration-policy-name-values-for-sca/sca-configuration-seccontacts.defaults.md#enable-or-disable-features) → Enables or disables the Azure AD data source.
* [**AAD\_InitValue**](/documentation/app-configuration-policy-name-values-for-sca/sca-configuration-seccontacts.defaults.md#initial-value-set-by-default) → Sets the default position of the user’s switch for this data source (on = shown, off = hidden) when SCA is first launched.
* [**AADuseUPNasEmail\_Option**](/documentation/app-configuration-policy-name-values-for-sca/sca-configuration-seccontacts.defaults.md#appearance-and-functions) → Determines whether to use User Principal Name (UPN) as the email address.
* [**AADonlyEnabledAccounts\_Option**](/documentation/app-configuration-policy-name-values-for-sca/sca-configuration-seccontacts.defaults.md#appearance-and-functions) → 🆕Filters contacts to include only enabled accounts.

**Customization / Organization:**

* [**SecContacts.AADGroups**](/documentation/app-configuration-policy-name-values-for-sca/sca-configuration-aad-filters-and-groups-1.md) → Organize contacts into separate data sources based on Azure AD groups.
* [**SecContacts.CustomDatasourceNames**](/documentation/app-configuration-policy-name-values-for-sca/sca-configuration-seccontacts.customdatasourcenames.md) → Assign friendly display names for the data source.

#### Requirements for Contacts

Any AAD contact to be shown in SCA **must have the following three fields populated**:

1. **First name**
2. **Last name**
3. **Valid phone number**

**Note:** Every AAD account in your tenant that meets these requirements will appear as a contact in SCA. Only **Member accounts** are included; **Guest accounts** are ignored.

{% hint style="success" %}

* Each data source, including AAD, can be **hidden by the user** if they do not want to see or use it.
* Hiding a data source does **not affect Caller Identification** — contacts from hidden sources will still resolve incoming calls.
* Use **AADGroups** to split contacts into multiple separate data sources (e.g., by department, region, or team).
  {% endhint %}


---

# 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.secure-contacts.com/documentation/data-sources/aad-azure-active-directory.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.
