Oomnitza uses Azure OAuth2.0 credentials to connect to Microsoft Services. Generating credentials can be difficult for users who are unfamiliar with Microsoft Azure. To assist users, instructions are provided to help generate the credentials that are required to set up Microsoft Defender, Intune, Active Directory, Microsoft, and Windows Autopilot integrations.
Note
The information and instructions documented in this article are for an external system, and that system is liable to change without warning.
Contents
- Create an OAuth2.0 application and retrieve the client and tenant IDs
- Add permissions for Microsoft Defender integrations
- Add permissions for Microsoft Intune integrations
- Add permissions for Azure AD and Microsoft users integrations
- Add permissions for Windows Autopilot integrations
- Add permissions for Azure AD asset integrations
- Generate the client secret
Generating an OAuth2.0 application in Azure
Creating the app
- Login to Azure.
- Select Microsoft Entra ID > App registrations > New registration.
- Enter a name for your OAuth2 application
- Specify who can use the application, sometimes called its sign-in audience.
- In the Redirect URI (optional) field, select Web and enter:
https://generic-oauth2-proxy.oomnitza.com/oauth2/redirect_url - Click Register.
Result
You are provided with your application (client ID) and directory (tenant ID). Keep note of this information for the next steps.
Adding permissions
Process for Microsoft Defender integrations
Complete these steps if you are creating a Microsoft Defender integration in Oomnitza.
From the sidebar, select API permissions.
Click + Add a Permission
In the Request API permissions screen, select the APIs my organization uses tab.
Search for WindowsDefenderATP and select WindowsDefenderATP from the list.
-
In the Request API permissions screen, click Delegated Permissions. Select the following permissions from the list
Machine.ReadIf you plan on writing back to Defender via workflows, you will need to add the following scopes.
Machine.OffboardMachine.ReadWriteMachine.IsolateMachine.RestrictExecutionMachine.ScanSoftware.Read.AllSecurityRecommendation.Read Vulnerability.Read
Click Add permissions
Next, you’ll need to grant admin consent to Oomnitza. This should be available in API permissions if you have administrator access rights in Azure).
Microsoft Documentation: Create a Microsoft Defender app
Process for Microsoft Intune integrations
Follow these steps if you are creating a Microsoft Intune integration in Oomnitza.
- From the sidebar, select API permissions.
- Click + Add a Permission
- Select Microsoft Graph
- Select Delegated permissions
- Select the following permissions:
-
For Intune Devices and Users, select
DeviceManagementManagedDevicesand then select all available options:DeviceManagementManagedDevices.PrivilegedOperations.All, DeviceManagementManagedDevices.Read.All, DeviceManagementManagedDevices.ReadWrite.All.
-
For Intune Devices and Users, select
- Click Add permissions
- Next, you’ll need to grant admin consent to Oomnitza. (Note: This should be available in API permissions if you have administrator access rights in Azure)
Microsoft Documentation: How to use Azure AD to access the Intune APIs in Microsoft Graph
Process for Azure Active Directory and Microsoft user integrations
Follow these steps if you are creating an Azure Active Directory or Microsoft integration in Oomnitza.
- From the sidebar, select API permissions.
- Click + Add a Permission
- Select Microsoft Graph
- Select Delegated permissions
- Select the following permissions User and then select
User.Read.AllandAuditLog.Read.Allto access thesignInActivityattribute. - Click Add permissions
- Next, you’ll need to grant admin consent to Oomnitza. (Note: This should be available in API permissions if you have administrator access rights in Azure)
Process for Windows Autopilot integrations
Follow these steps if you are creating a Windows Autopilot integration in Oomnitza.
- From the sidebar, select API permissions.
- Click + Add a Permission
- Select Microsoft Graph
- Select Delegated permissions
- Select the following permissions:
-
Select
DeviceManagementServiceConfigand then select:DeviceManagementServiceConfig.ReadWrite.All
-
Select
- Click Add permissions
- Next, you’ll need to grant admin consent to Oomnitza. (Note: This should be available in API permissions if you have administrator access rights in Azure)
Process for Azure Active Directory assets
Follow these steps if you are creating a Azure Active Directory assets integration in Oomnitza.
- From the sidebar, select API permissions.
- Click + Add a Permission
- Select Azure Service Management
- Select the
user_impersonationpermission. - Click Add permissions
- Next, you’ll need to grant admin consent to Oomnitza. (Note: This should be available in API permissions if you have administrator access rights in Azure).
Generating the client secret
To add your credentials to Oomnitza, you will require:
- The client ID
- The tenant ID
- The client secret
The client and tenant IDs for the application can be retrieved from the Essentials section for the app that you registered. See Creating an app.
To add a client secret, complete these steps:
- On the Certificates & secrets page for the application, click New client secret.
- Make your changes.
- Click Add.
- Click Copy to clipboard
next to the Value field. This is the value of your client secret.
Result
Now that you have your client secret, client ID, and tenant ID, you can add your credentials to Oomnitza and run the integration.
Documentation Links
Quickstart: Register an application with the Microsoft identity platform
Comments
0 comments
Please sign in to leave a comment.