1. Home
  2. FlexRule Server
  3. Workbench
  4. Azure AD Authentication for FlexRule Server Workbench

Azure AD Authentication for FlexRule Server Workbench

◷ Reading Time: 5 minutes

FlexRule Server enables seamless authentication for FlexRule Server Workbench users with Azure Active Directory (Azure AD) credentials.

In order to set up Azure AD authentication, you have to set up the Azure APP registration in your Azure portal first and then the FlexRule Server installation setup. Lets have a look on each step in detail.

Azure App Registration Setup

Configure Azure AD to allow FlexRule Server Workbench to authenticate users.

Step 1: Register a New Application in Azure AD

  1. Navigate to the Azure Portal (portal.azure.com).
  2. Go to Azure Active Directory → App Registrations → New Registration.
    • Name: Enter FlexRule Server Workbench (or your preferred name).
    • Supported Account Types: Select “Accounts in this organizational directory only (FlexRule only – Single tenant)”
    • Select a platform: Single-Page application (SPA)
    • Redirect URI: Set to http://[your-flexrule-workbench address]/ssoAzure.html (replace with your FlexRule workbench address).
Register an application - Microsoft Azure

You can navigate to Manage – Authentication to make sure your redirect URL is eligible for the authentication code flow.

Single Page Application Redirect

And also make sure “ID tokens” is checked under Implicit grant and hybrid flows”

Step 2: Note Critical Azure AD Details

Navigate to App Overview.

Collect the following values for Part 2:

  • Application (Client) ID: Found in the app registration overview.
  • Directory (Tenant) ID: Found in the app registration overview.
credentials for Azure app

FlexRule Server Installation Settings

During New Installation

  1. Run the FlexRule Server Master Management Configurator.
  2. When prompted, provide:
    • Azure AD Client ID: From Part 1- Azure App Registration Setup.
    • Azure AD Tenant ID: From Part 1- Azure App Registration Setup.
  3. Complete the installation.
MS Azure AD in FRS Configurator

 For Existing Installations

Use the FlexRule CLI to add, update, remove Azure AD credentials to a running instance:

Replace <ClientID> and <ClientSecret> with your Azure AD app values in the following scripts.

Make sure you restart every server instance after you run the following changes to Azure the AD.

Add

FRS.exe config --sso "add" --azure --clientid <your client ID> --tenantId <Your tenant ID>

Update

FRS.exe config --sso "update" --azure --clientid <your client ID> --tenantId <Your tenant ID>

Remove

FRS.exe config --sso "remove" --azure

 Restart the Server

Login with Azure AD

Once you run FlexRule Server, login to Workbench using “Sign in With Azure”.

Sign in with Azure

Then, follow the steps to give credentials for your Azure account.

Microsoft Sign in
MS permission Requested

Access Control for Azure AD Users

By default, Azure AD users have “External User” role in FlexRule Workbench. This user role doesn’t have any permission by default. Workbench Admin should grant the necessary permission to this user role based on the intention.

Azure AD users(External Users) cannot execute any services unless relevant permission is granted.

User for Azure AD
External User
USer Role for the Azure AD

To execute services, an admin must grant relevant permissions as explained in here.

Updated on February 19, 2026

Was this article helpful?

Related Articles