Guide To Azure Ad
Guide To Azure Ad
Guide To Azure Ad
configuration guide
www.adauditplus.com
Table of contents
1. Overview 1
5.1Event details 28
7. Troubleshooting 29
1. Introduction
Enforce accountability and enhance security across your Microsoft Azure Active Directory (AD)
environment using ManageEngine's UBA-driven change auditing solution, ADAudit Plus. It helps
keep track of the changes made to various AD objects, as well as authentication attempts, to
ensure compliance with regulatory mandates such as PCI DSS, HIPAA, and the GDPR.
Gain complete visibility into your on-premises, cloud, or hybrid AD environment from a
single console.
Audit and record both failed and successful authentication attempts and analyze
authentication patterns across both on-premises and cloud AD environments.
Protect your organization from various IT security threats by analyzing high-risk activities,
such as when a user logs in to a disabled application or tries to sign in using a disabled
account.
Track and report on all changes in a user account's life cycle, including creation, deletion,
enabling, disabling, and restoration.
Audit and alert on every time a user is added or removed from a device.
Locate and analyze members who are added or removed from AD groups and prevent
privilege misuse.
Meet the required security standards across Azure tenants by keeping a close eye on
recently added or removed OneAuth permissions.
Track and analyze the usage of Azure applications and the failed requests.
Trigger instant email or SMS notifications every time Azure AD multi-factor authentication
(MFA) fails.
This guide takes you through the process of setting up ADAudit Plus to audit an
Azure AD environment.
1
2. Comparing the methods for configuring Azure AD
ADAudit Plus offers two methods to audit your Azure environment. They are:
Modified properties, along with their Possible Not possible with basic edition of
new and old values Microsoft 365 E1 licensing
Table 1: A detailed comparison of how auditing Azure varies depending on whether you use a
Microsoft 365 license or an Azure AD Premium license.
Note: ADAudit Plus strongly recommends the use of an Azure AD Premium license over a
Microsoft 365 license to get more features.
2
3. Configuring Azure AD in ADAudit Plus
3.1. Configuring using Azure AD premium license
To audit your Azure AD environment using an Azure AD Premium license, ADAudit Plus uses the
Microsoft Graph API to obtain events from Azure AD.
Register an application
Register an application in the Azure portal, using these steps:
1. Go to the Azure portal, and sign in using your Microsoft account.
3. Go to Manage > App registrations > New registrations to open the Register
an application window.
3
4. Enter the application name, for example, ADAudit Plus Application.
5. Ensure that Accounts in this organizational directory only (zohoadapazure only - Single tenant)
is selected under Supported account types.
6. Click Register.
4
Grant minimum privileges required for Microsoft Graph API
To grant the necessary privileges using Microsoft Graph API:
3. Go to Manage > App registrations. Select your application under Owned applications.
5
4. Go to Manage > API permissions and select + Add a permission.
6
5. Select Microsoft Graph. Click Application permissions as the type of permission required.
9. Click Yes.
7
Obtain client ID and client secret
1. Go to the Azure portal, and sign in using your Microsoft account.
2. Select Azure Active Directory service from the Azure services section.
3. Go to Manage > App registrations. Select your application under Owned applications.
8
9
5. Go to Manage > App registrations. Select your application under Owned Applications.
10
Setting up Azure AD in ADAudit Plus
1. Open the ADAudit Plus web console.
5. In the Cloud Directory window, choose the Cloud Type based on the national cloud points
from the list below:
Azure AD global service (Azure Cloud - Default)
Azure AD for US Government L4 (Azure GCC High Cloud)
Azure AD for US Government L5 (Azure DOD Cloud)
Azure AD China operated by 21Vianet (Azure China Cloud)
Azure AD for Germany (Azure Germany Cloud)
11
7. Click Add.
For more details on why Azure AD graph API was deprecated, check the FAQ.
Check if you are using Azure AD Graph API and, if so, migrate using these steps:
1. Open the ADAudit Plus web console.
If the Back to Azure AD Graph API button is available, then Microsoft Graph API is in use.
3. Migrate to Microsoft Graph API from Azure AD Graph API by clicking Migrate to Microsoft
Graph API at the top-right corner.
12
Note: Once you have migrated to Microsoft Graph API, add the necessary minimum privileges
using the steps listed here.
If you still want to use Azure AD Graph API, you can find the privileges required below:
Directory.Read.All
Register an application
Register an application in the Azure portal, using these steps:
1. Go to the Azure portal, and sign in using your Microsoft account.
2. Select the Azure Active Directory service from the Azure services top pane.
13
3. Go to Manage > App registrations > New registrations to open the Register
an application window.
5. Ensure that Accounts in this organizational directory only (zohoadapazure only - Single tenant)
is selected under Supported account types.
14
6. Click Register.
2. Select Azure Active Directory service from the Azure services section.
15
3. Go to Manage > App registrations. Select your application under Owned applications.
4. Go to Manage > API permissions and select + Add a permission to open the Request API
permissions window.
16
5. Select Office 365 Management APIs.
7. In the Request API permissions window, select Application permissions, then check the
ActivityFeed.Read box under ActivityFeed. Select Add permissions.
17
8. Once again, go to Manage > API permissions > + Add a permission.
18
10. Select Application permissions.
11. Check the Directory.Read.All box under Directory. Select Add permissions.
19
12. Select Grant admin consent for <tenant name>.
20
Obtain client ID and client secret
2. Select Azure Active Directory service from the Azure services section.
21
4. Copy the client secret value (e.g., 14uCILxkHtIVGR3wkCq12341Nd5VtestkkWTyIPrrE=).
22
5. Go to Manage > App registrations. Select your application under Owned applications.
23
Setting up Azure AD in ADAudit Plus
1. Open the ADAudit Plus web console.
5. In the Cloud Directory window, enter the Client ID and Client Secret.
6. Click Add.
24
Privileges required for Office 365 cmdlet configuration
ADAudit Plus uses the below-listed APIs to audit Azure AD.
Office 365 Management API for all installations after ADAudit Plus build 7050.
PowerShell cmdlets (unified audit log) for tenants who configured Azure AD via Office 365
before ADAudit Plus build 7050.
Note: ADAudit Plus strongly recommends using Office 365 Management API to obtain Azure AD
events. For tenants still using PowerShell cmdlets, you can update your configuration by migrating
O365 cmdlet configuration to Office 365 Management API configuration. You can find the
steps to do it here.
3. Under the Actions column in the report, select the Migrate icon.
Note: This is only necessary for tenants who configured Azure AD via O365 before build 7050.
This feature will be available once the users upgrade to build 7050 or above.
4. In the Migrate to M365 API window that opens, enter the Client ID and Client Secret
generated previously.
25
5. Click Migrate.
If you still want to use O365 cmdlet configuration and you are using an ADAudit Plus build lower
than 7050, you can find the privileges required below:
26
Notes:
Gain a correlated view of your hybrid AD environments by configuring both Azure AD and
on-premises AD domain details in ADAudit Plus.
Displays both on-premises and cloud details, Only displays details available in the cloud,
such as SID, GUID, and user distinguished name such as user name and display name
Activity origin
Generates details on where the activity began, Does not include details on where the
e.g., in the cloud or synced from Windows servers activity began
Retention
Retains historical data based on the retention Amount of data stored depends on the license
period configured by the user level in Azure (maximum retention duration
is 30 days)
Reports
Analyzes user login details across both Generates only cloud login details in reports
on-premises and cloud environments from a
single console
Table 2: A detailed comparison of how auditing via ADAudit Plus differs from auditing via the
Azure portal over multiple categories.
27
4.2. ADAudit Plus vs. Microsoft 365 (using PowerShell cmdlets)
Displays both on-premises and cloud details, Only displays details available in the cloud,
such as SID, GUID, and user distinguished name such as user name and display name
Activity origin
Generates details on where the activity began, Does not include details on where the
e.g., in the cloud or synced from Windows servers activity began
Retention
Retains historical data based on the retention Amount of data stored is based on the license
period configured by the user level in Microsoft 365 (maximum retention
duration is 90 days)
Reports
Lists user login details across both on-premises Generates only cloud login details in reports
and cloud environments from a single console
Table 3: A detailed comparison of how auditing via ADAudit Plus differs from auditing via
Microsoft 365 over multiple categories.
28
6. Log retention settings in Azure AD
It is imperative to retain an adequate amount of historical audit data to meet any compliance or
forensic requirements that might arise. The retention period for both Microsoft 365 and Azure AD
is based on the user’s license level and allows for only a maximum of 90 days. ADAudit Plus,
however, provides admins with the option to configure any custom retention period, ensuring a
foolproof audit trail.
7. Troubleshooting
Errors and solutions
1. Failed to add tenants. Check your client secret.
2. Unable to add tenants due to invalid client ID.
3. Invalid tenant name.
4. Insufficient privileges to audit Azure AD.
5. The Azure AD server is taking too long to respond. Check your network connectivity.
6. Unable to connect with the Azure AD server due to connection reset.
7. Unable to connect with the Azure AD server due to trust failure.
8. Certificate update in progress. Restart the ADAudit Plus service.
9. The sign-in logons require an Azure AD premium license.
10. Insufficient privileges when auditing via Office 365.
11. The configured proxy server is unreachable.
12. Network unreachable.
13. Unauthenticated proxy server configured.
14. Spike in Azure AD event requests.
15. The event collection is taking too long.
16. Insufficient privileges to carry out risk detection.
17. No data available.
29
1. Failed to add tenants. Check your client secret.
Issue: Unable to add tenants to configure Azure AD due to invalid client secret.
Solution: Client secret values will be available only while it is generated. So, if you have a copy of
your current client secret copied elsewhere, you can use it to compare to the value configured in
ADAudit Plus. If not, you will have to create a new client secret.
30
x. Click + Add Tenant icon at the top-right corner.
xi. Input the tenant name, client ID, and client secret value.
xiii. Click Save.
Solution: Check if you have entered the correct client ID by following the steps listed below:
i. Go to the Azure portal.
ii. Select the Azure Active Directory service from the Azure services top pane.
iii. Go to Manage > App registrations. Select your application under Owned applications.
iv. Navigate to Application (client ID) and click Copy to clipboard.
31
v. Now open the ADAudit Plus console.
vi. Navigate to Azure AD > Configuration > Cloud Directory.
Solution: Check if you have entered the correct tenant name by following the steps listed below:
32
i. Go to the Azure portal.
ii. Select the Azure Active Directory service from the Azure services top pane.
iii. Go to Overview in the left pane. Copy the tenant name.
iv. Now open the ADAudit Plus console.
v. Navigate to Azure AD > Configuration > Cloud Directory.
vi. Click +Add Tenant at the top-right corner.
vii. Type in the correct tenant name, client ID, and client secret values.
viii. Click Save.
Solution: Grant the minimum required permissions for application created to audit Azure AD using
the steps listed on this page.
5. The Azure AD server is taking too long to respond. Check your network connectivity
Issue: There is a connectivity issue between the ADAudit Plus server and Azure AD server.
Solution: Check if there is a stable and reliable internet connection with a speed of 20Mbps or over.
If there is proxy configured in the machine where ADAudit Plus is installed, then configure proxy
setting in ADAudit Plus too, using these steps:
Solution: If you are using a firewall to secure your network, kindly ensure that the domains listed
below are added to the exemption list.
https://login.microsoftonline.com
https://outlook.office365.com
https://graph.windows.net
https://graph.microsoft.com
https://manage.office.com
If you do not use a firewall, or if the issue persists even after upgrading to the latest build,
contact support.
33
7. Unable to connect with the Azure AD server due to trust failure.
Issue: A firewall could be restricting ADAudit Plus from connecting with the Azure AD server.
Solution: If you are using a firewall to secure your network, kindly ensure that the domains listed
below are added to the exemption list.
https://login.microsoftonline.com
https://outlook.office365.com
https://graph.windows.net
https://graph.microsoft.com
https://manage.office.com
If you do not use a firewall or if the issue persists even after upgrading to the latest build,
contact support.
Solution: Restart the ADAudit Plus service to reflect the already updated certificate in the
ADAudit Plus trust store.
Note: The required certificate will be automatically updated to the ADAudit Plus trust store.
Solution: Grant the minimum required permissions for application created to audit Azure AD
using the steps listed on this page.
34
11. The configured proxy server is unreachable
Issue: The configured proxy server is not running.
Solution: Check the proxy server's running status. If it's running, configure it in ADAudit Plus'
proxy setting.
Solution: Check the server’s internet connection and provide internet connectivity if you
haven’t done so already.
Note: The required certificate will be automatically updated to the ADAudit Plus trust store.
Solution: Configure the right username and password on the ADAudit Plus proxy setting page,
using these steps:
Solution: The issue will be fixed automatically when you upgrade to build 7080 or above.
Solution: Click run-now. If it keeps throwing the same error, contact support.
35
16. Insufficient privileges to carry out risk detection
Issue: The Azure AD premium license does not have the required privileges to analyze risky
sign-in activities.
Solution: Find the minimum required permissions for application created to populate information
about risky sign-in action in Azure AD using the steps listed on this page.
Solution: This issue could stem from multiple factors. One of which is insufficient privileges, i.e.,
the account used to logon to ADAudit Plus does not have necessary privileges to audit Azure. In
such cases, there will be an in-product notification as shown in the screenshot below.
To resolve this, check if the account you have used to logon has privileges to view Cloud Directory
reports using the steps below:
Open ADAudit Plus web console.
Go to Admin > Technicians.
Click the Modify icon under the Action column next to the name of the user account you
have used to logon.
Check Cloud Directory under Delegate Role to list.
36
Now verify if you can view the Azure AD reports by logging on using that user account.
If you have the necessary privileges and are still not able to populate any reports under the
Cloud Directory, contact support.
To learn more about how ADAudit Plus can help you with all your Active Directory auditing needs, please visit:
https://www.manageengine.com/products/active-directory-audit/