Skip to main content

Microsoft Entra ID (OIDC) Single Sign-On Setup

Configure native Microsoft Entra ID (OIDC/OAuth 2.0) Single Sign-On in NetBeez NextGen with role mapping, login activation, and client secret expiry alerts.

Written by Panickos Neophytou

NetBeez NextGen (Version 20.0+) provides native OpenID Connect (OIDC) / OAuth 2.0 Single Sign-On integration with Microsoft Entra ID (formerly Azure Active Directory) under Settings → Users & Access → Single-Sign On → Microsoft Entra ID, supporting Entra group Object ID role mapping, default role assignment, and proactive client secret expiration alerts. (To configure SAML 2.0 with Microsoft Entra ID instead, see SAML Single Sign-On Setup with Microsoft Entra ID.)

In this article:

Overview & Prerequisites

  • Administrator Access & Fallback Account: Only NetBeez Administrator users can configure SSO. Always maintain at least one local email/password Administrator account so you can sign in via https://<your-netbeez-hostname>/login?auth=email if a client secret expires or Entra ID settings change.

  • Unique Email per User Record: Each email address in NetBeez maps to a single user record. If a user already exists as a local Email account, remove or update the local account in Settings → Users & Access → Users before they sign in with Microsoft Entra ID.

  • Updated NextGen Redirect URI: NetBeez Version 20.0+ uses https://<your-netbeez-hostname>/auth/entra_id/callback as its Web Redirect URI (replacing the legacy /users/auth/azure_ad/callback URI).

Step 1: Register the Application in Microsoft Entra ID

  1. Sign in to the Microsoft Entra admin center (or Azure Portal → Microsoft Entra ID), open Enterprise applications, click + New application, and click + Create your own application.

  2. Enter an application name (for example, NetBeez), select Register an application to integrate with Microsoft Entra ID (App you're developing), and click Create.

  3. Choose the appropriate Supported account types for your organization (typically Accounts in this organizational directory only).

  4. Under Redirect URI, select Web from the platform dropdown and enter:

https://<your-netbeez-hostname>/auth/entra_id/callback
  1. Click Register.

  2. Open the newly registered application (via App registrations or Enterprise applications → Single sign-on → Go to application) and copy both values from the Essentials overview:

    • Directory (tenant) ID

    • Application (client) ID

  3. Navigate to Certificates & secrets → Client secrets and click + New client secret. Enter a description, choose your desired expiration period, and click Add. Immediately copy the secret's Value (not the Secret ID) and note its Expires date.

  4. Optional — Configure Group Claims for Role Mapping: If you want Microsoft Entra security groups to control NetBeez user roles automatically:

    • Create or identify three Microsoft Entra groups corresponding to NetBeez Administrator, Read-write, and Read-only roles, add your users to those groups, and copy each group's Object Id UUID.

    • On your Enterprise Application under Single sign-on → Attributes & Claims → Edit → + Add a group claim (or in App registrations → Token configuration → + Add groups claim), select Security groups (returning Group ID) and save.

Step 2: Configure Microsoft Entra ID in NetBeez NextGen

Sign in to NetBeez as an Administrator and navigate to Settings → Users & Access → Single-Sign On → Microsoft Entra ID:

Settings Users &amp; Access Single-Sign On Microsoft Entra ID page showing Tenant ID, Client ID, Client Secret, Expires At, and Role Mapping settings
  1. Toggle Enabled on.

  2. Enter your application credentials from Microsoft Entra ID:

    • Tenant ID: Paste your Directory (tenant) ID.

    • Client ID: Paste your Application (client) ID.

    • Client Secret: Paste your client secret Value.

    • Expires At: Select the client secret's expiration date (YYYY-MM-DD, must be a future date when enabled) so NetBeez notifies Administrators before the secret expires.

  3. Under Role Mapping, select how user permissions are assigned:

    • Role Mapping Disabled (Default): Keep Role Mapping off and choose a Default Role (Read only [default], Read write, or Admin). First-time Entra ID users receive this default role, and Administrators can adjust roles afterward in Settings → Users & Access → Users.

    • Role Mapping Enabled: Toggle Role Mapping on and paste the Microsoft Entra group Object Id UUIDs into Admin Group ID, Read-Write Group ID, and Read-Only Group ID. When enabled, Microsoft Entra ID must return group memberships during login: users without one of the three mapped groups are denied authentication, roles update automatically from Entra group memberships on every login, and roles cannot be edited manually in NetBeez.

  4. Click Save Settings. Remember that revoking a user's access requires removing them from both Microsoft Entra ID (or their mapped Entra group) and NetBeez.

Step 3: Activate Microsoft Entra ID on the NetBeez Login Page

After saving the Microsoft Entra ID integration, activate it as your sign-in provider in Authentication settings:

  1. Click Manage Authentication in the top-right corner of the Microsoft Entra ID SSO card (or navigate to Settings → Users & Access → Authentication).

  2. Click the Authentication card to expand it:

Settings Users &amp; Access Authentication card showing Authorized Domains, Multi-Factor Authentication, Email Login, and SSO Provider dropdown
  1. Select Microsoft Entra ID in the SSO Provider dropdown.

  2. Set Email Login to Hide Login (hides the Continue with Email button on /login while keeping https://<your-netbeez-hostname>/login?auth=email available for local Administrators) or Show Login, optionally configure Authorized Domains, and click Apply.

  3. Confirm that the Microsoft Entra ID SSO card shows an Active badge and that /login displays the Continue with Microsoft Entra ID button.

Client Secret Expiration Warnings & MFA Behavior

  • Proactive Client Secret Expiration Alerts: When Expires At is configured on an enabled Microsoft Entra ID integration, NetBeez alerts Administrators starting 14 calendar days before the secret expires—displaying escalating attention icons on Settings → Users & Access → Single-Sign On → Microsoft Entra ID, pushing in-app system notifications (at 14, 5, 2, and 0 days remaining with a Go To Setting action), and emailing Administrators at 14 days, 7 days, and 0 days remaining (via SMTP). Rotating the client secret in Microsoft Entra ID and saving the new secret and future Expires At date in NetBeez automatically clears open expiration notifications.

  • MFA Exemption: Users signing in with Microsoft Entra ID are protected by your organization's Entra Conditional Access and MFA policies and are exempt from local NetBeez Authenticator-app MFA codes.

Did this answer your question?