Microsoft Entra ID (Azure AD) Tutorial
Integrate Microsoft Entra ID with ImpulseWatch using either a SAML 2.0 Enterprise Application (recommended for MyApps tiles & SCIM 2.0) or an OpenID Connect App Registration, complete with automated SCIM user and security-group provisioning.
Overview & Supported Modes
- SAML 2.0 + SCIM 2.0 (Recommended): Supports Microsoft MyApps 1-click tiles, SP-initiated Work Email login at
app.impulsewatch.io, Security Group claims, and 40-minute incremental SCIM sync with instant deactivation. - OpenID Connect (OIDC): Uses Authorization Code + PKCE with RS256 JWKS verification and strict
email_verified/azpchecks.
Option A: SAML 2.0 Enterprise Application
-
Create Connection in ImpulseWatch
Open People → SSO & SCIM → Step 2, click the Microsoft Entra ID preset (Protocol:
SAML 2.0), save the draft, and copy yourSP Entity IDandACS URL. -
Create Non-Gallery Enterprise Application in Entra
In the Microsoft Entra Admin Center, go to Identity → Applications → Enterprise applications → + New application → + Create your own application. Name it
ImpulseWatchand select Integrate any other application you don't find in the gallery (Non-gallery). -
Configure Basic SAML Configuration
Go to Single sign-on → SAML and click Edit on section 1 (Basic SAML Configuration):
Entra Field Exact Value Identifier (Entity ID) https://api.impulsewatch.io/v1/auth/saml/{connection_id}/metadata.xmlReply URL (Assertion Consumer Service URL) https://api.impulsewatch.io/v1/auth/saml/{connection_id}/acsSign on URL (Optional) https://app.impulsewatch.io -
Import App Federation Metadata into ImpulseWatch
In Entra section 3 (SAML Certificates), copy the App Federation Metadata Url, paste it into ImpulseWatch's IdP Metadata URL field, save, assign test users under Entra Users and groups, and click Test SSO Sign-In in ImpulseWatch.
Configure Entra Group Claims
To map Entra Security Groups to ImpulseWatch RBAC roles (Admin / Editor / Viewer):
- In Entra Single sign-on → Attributes & Claims, click + Add a group claim.
- Select Groups assigned to the application (recommended to keep token size small).
- Set Source attribute to
Group ID(orsAMAccountName/Cloud-only group display namesif using display names). - In ImpulseWatch's Group → Role Mapping, map each Entra Group Object ID (or display name) to
admin,editor, orviewer.
Option B: OpenID Connect (OIDC) App Registration
If your security team standardizes on OIDC instead of SAML:
-
Register an OIDC Application in Entra
In Entra, go to App registrations → + New registration. Set Redirect URI (Web) to:
ImpulseWatch OIDC Callback URLhttps://api.impulsewatch.io/v1/auth/oidc/{connection_id}/callback -
Create Client Secret & Copy Issuer
Under Certificates & secrets, create a client secret. Paste these values into ImpulseWatch (Protocol:
OIDC):Entra ID OIDC SettingsIssuer URL: https://login.microsoftonline.com/{tenant_id}/v2.0 Client ID: <Application (client) ID> Client Secret:<Client secret value> Scopes: openid, email, profile Groups Claim: groups
Enable SCIM 2.0 Automatic Provisioning
ImpulseWatch handles Microsoft Entra ID's SCIM 2.0 PATCH idioms (including dotted attribute paths and emails[type eq "work"].value) natively:
-
Generate a SCIM Token in ImpulseWatch
In ImpulseWatch People → SSO & SCIM → Step 3, click Generate SCIM Token and copy the
iw_scim_*secret. -
Configure Entra Provisioning
In your Entra Enterprise Application, open Provisioning → Get started, set Provisioning Mode to
Automatic, and enter:Microsoft Entra ID SCIM Provisioning CredentialsTenant URL: https://api.impulsewatch.io/scim/v2 Secret Token: iw_scim_<your_generated_token>Click Test Connection (expect a green check) and click Save.
-
Verify Attribute Mappings & Start Provisioning
Keep both Provision Microsoft Entra ID Users and Provision Microsoft Entra ID Groups enabled. Ensure
userPrincipalName(ormail) maps touserNameandSwitch([IsSoftDeleted], , "False", "True", "True", "False")maps toactive. Turn Provisioning Status to On.
Troubleshooting
- AADSTS50011 Reply URL mismatch: Ensure the Reply URL in Entra exactly matches
https://api.impulsewatch.io/v1/auth/saml/{connection_id}/acswith no trailing slash. - Group IDs vs. Display Names: Entra emits GUID Object IDs in SAML/OIDC group claims by default for cloud-only groups; verify whether you pasted the GUID or enabled Cloud-only group display names.
- Instant Deactivation: Removing a user from the Enterprise App or disabling their Entra account triggers a SCIM
PATCH /Users/{id}withactive: false, revoking active ImpulseWatch sessions immediately.