Docs/Enterprise Identity
Microsoft Entra ID Guide SAML 2.0 / OIDC + SCIM 2.0

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 / azp checks.

Option A: SAML 2.0 Enterprise Application

  1. 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 your SP Entity ID and ACS URL.

  2. 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 ImpulseWatch and select Integrate any other application you don't find in the gallery (Non-gallery).

  3. Configure Basic SAML Configuration

    Go to Single sign-on → SAML and click Edit on section 1 (Basic SAML Configuration):

    Entra FieldExact Value
    Identifier (Entity ID)https://api.impulsewatch.io/v1/auth/saml/{connection_id}/metadata.xml
    Reply URL (Assertion Consumer Service URL)https://api.impulsewatch.io/v1/auth/saml/{connection_id}/acs
    Sign on URL (Optional)https://app.impulsewatch.io
  4. 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):

  1. In Entra Single sign-on → Attributes & Claims, click + Add a group claim.
  2. Select Groups assigned to the application (recommended to keep token size small).
  3. Set Source attribute to Group ID (or sAMAccountName / Cloud-only group display names if using display names).
  4. In ImpulseWatch's Group → Role Mapping, map each Entra Group Object ID (or display name) to admin, editor, or viewer.

Option B: OpenID Connect (OIDC) App Registration

If your security team standardizes on OIDC instead of SAML:

  1. Register an OIDC Application in Entra

    In Entra, go to App registrations → + New registration. Set Redirect URI (Web) to:

    ImpulseWatch OIDC Callback URL
    https://api.impulsewatch.io/v1/auth/oidc/{connection_id}/callback
  2. Create Client Secret & Copy Issuer

    Under Certificates & secrets, create a client secret. Paste these values into ImpulseWatch (Protocol: OIDC):

    Entra ID OIDC Settings
    Issuer 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:

  1. Generate a SCIM Token in ImpulseWatch

    In ImpulseWatch People → SSO & SCIM → Step 3, click Generate SCIM Token and copy the iw_scim_* secret.

  2. Configure Entra Provisioning

    In your Entra Enterprise Application, open Provisioning → Get started, set Provisioning Mode to Automatic, and enter:

    Microsoft Entra ID SCIM Provisioning Credentials
    Tenant URL:   https://api.impulsewatch.io/scim/v2
    Secret Token: iw_scim_<your_generated_token>

    Click Test Connection (expect a green check) and click Save.

  3. Verify Attribute Mappings & Start Provisioning

    Keep both Provision Microsoft Entra ID Users and Provision Microsoft Entra ID Groups enabled. Ensure userPrincipalName (or mail) maps to userName and Switch([IsSoftDeleted], , "False", "True", "True", "False") maps to active. 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}/acs with 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} with active: false, revoking active ImpulseWatch sessions immediately.