Skip to main content

Microsoft Entra ID (Azure AD) – SSO & Connector Permissions

Documentation Snapshot: October 2026

Reference Environment: Microsoft Entra Admin Center / Microsoft 365 / Azure Portal (as of late 2026). Note for administrators: In 2023, Microsoft rebranded Azure Active Directory (Azure AD) to Microsoft Entra ID and introduced the dedicated identity portal https://entra.microsoft.com/. In 2025, the admin center navigation was reorganized: the former Identity node is now labeled Entra ID, and the intermediate Applications level was removed (e.g., app registrations are now located directly under Entra ID → App registrations). If menu names or licensing suites (e.g., Microsoft Entra Suite) evolve in future years, please note that the terminology and navigation paths in this document reflect this snapshot.

This guide provides a comprehensive, step-by-step walkthrough for administrators to set up Single Sign-On (SSO) with Microsoft Entra ID for FSI Server, secure the integration using OpenID Connect (OIDC) v2.0 with PKCE (S256) and confidential client authentication, and manage access to different Source Connectors on FSI Server.

It covers all licensing tiers—from Entra ID Free (the default plan included in Microsoft 365) to Entra ID P1 and Entra ID P2—highlighting the functional differences, workarounds, and best practices.


Portal Selection: Microsoft Entra Admin Center vs. Azure Portal​

Microsoft provides two web portals to manage directory identities and app registrations. Both portals connect to the exact same directory (tenant) and share all underlying configuration:

FeatureMicrosoft Entra Admin CenterMicrosoft Azure Portal
URLhttps://entra.microsoft.com/https://portal.azure.com/
Primary FocusIdentity & Access Management (IAM), governance, protection, and app registrations.Complete cloud infrastructure (VMs, databases, networks, storage + identity).
RecommendationRecommended for identity and FSI Server administrators (streamlined, focused navigation).Suitable for administrators already working across Azure infrastructure.
Navigation PathEntra ID → App registrations
(until 2025: Identity → Applications → App registrations)
Search: Microsoft Entra ID (formerly Azure Active Directory) → App registrations

In the following steps, navigation paths refer primarily to the Microsoft Entra Admin Center, with corresponding Azure Portal paths noted where applicable.


License Feature Comparison: Free vs. P1 vs. P2​

Depending on your organization's Microsoft 365 / Entra ID plan, different administrative and security capabilities are available:

CapabilityEntra ID Free (No Feature Plan)Entra ID P1Entra ID P2
OIDC Single Sign-On (FSI Server)✅ Supported✅ Supported✅ Supported
Client Authentication (BFF)✅ Confidential Client (Secret + PKCE)✅ Confidential Client (Secret + PKCE)✅ Confidential Client (Secret + PKCE)
Security Groups for Connectors✅ Static only✅ Static & Dynamic✅ Static & Dynamic
Dynamic User Groups
(e.g., user.department -eq "Marketing")
❌ Not available
(manual assignment)
✅ Supported
(automated membership)
✅ Supported
(automated membership)
Enterprise App Assignment
(when Assignment required = Yes)
⚠️ Users only
(group assignment disabled)
✅ Assign Groups✅ Assign Groups
Token Group Filtering
(prevents Group Overage / Token Bloat)
❌ No (emits all user groups)✅ Assigned groups only✅ Assigned groups only
Conditional Access
(enforce MFA & compliant devices for FSI)
❌ No (global security defaults only)✅ Supported
(targeted FSI policies)
✅ Supported
(targeted FSI policies)
Risk-Based Conditional Access
(sign-in and user risk detection)
❌ No❌ No✅ Supported
(Identity Protection / ML)
Privileged Identity Management (PIM)
(Just-in-Time access for FSI Admins)
❌ No❌ No✅ Supported
Access Reviews
(periodic recertification of connector access)
❌ No❌ No✅ Supported

Architecture & Data Flow​

On FSI Server, digital assets are organized into Source Connectors (such as local storage directories, SAN/NAS shares, or cloud buckets). Access to each connector is governed by FSI Server Groups.

The following diagram illustrates how user attributes in Entra ID map to security groups, pass through the OIDC authorization code flow with PKCE (S256), and resolve to connector permissions on FSI Server:

Scenario Overview:​

FSI ConnectorPurposeEntra ID GroupFree Plan SetupP1 / P2 SetupFSI Permission
marketing-assetsCampaign images, graphicsFSI-Connector-MarketingStatically assigned usersDynamic (department -eq "Marketing")Read, Write, Upload
product-catalogE-Commerce product photosFSI-Connector-ProductsStatically assigned usersDynamic (department -in ["E-Commerce", "Photo"])Read Only / Download
internal-archiveConfidential company archiveFSI-Connector-ArchiveStatically assigned usersStatic with P2 Access ReviewsRead Only
All ConnectorsFull server administrationFSI-AdministratorsStatically assigned usersP2 PIM (Just-in-Time elevation)Administrator (Full access)

Microsoft Entra Admin Center Configuration​

Step 1: Create Security Groups for Connectors​

In the Microsoft Entra Admin Center, navigate to: 👉 Entra ID → Groups → All groups → New group (In Azure Portal: Microsoft Entra ID → Groups → All groups → New group)

Option A: With Entra ID Free (Static Membership)​

  1. Group type: Security
  2. Group name: e.g., FSI-Connector-Marketing
  3. Membership type: Assigned
  4. Under Members, manually select the authorized employees.
  5. Repeat for FSI-Connector-Products, FSI-Connector-Archive, and FSI-Administrators.

Option B: With Entra ID P1 (Dynamic User Groups)​

  1. Membership type: Dynamic User
  2. Under Dynamic user members → Add expression:
    • Property: department, Operator: Equals, Value: Marketing (Expression: (user.department -eq "Marketing"))
  3. Benefit: Employees joining or moving to Marketing receive access automatically; access is revoked immediately upon department change.

Option C: With Entra ID P2 (PIM for Admins & Access Reviews)​

  • For FSI-Administrators: Set Microsoft Entra roles can be assigned to the group to Yes (this option requires at least an Entra ID P1 license). Combined with Privileged Identity Management (PIM) (P2), administrators only activate their privileges upon request with MFA and approval.
  • For FSI-Connector-Archive: Schedule quarterly Access Reviews under ID Governance (formerly Identity Governance) to periodically recertify permissions.
Important: Record the Group Object IDs (GUIDs)

Open each created group and copy its Object ID (GUID, e.g., 11111111-aaaa-bbbb-cccc-111111111111). You will need these GUIDs for the groupMapping section in settings.yml.


Step 2: Register the Application​

  1. Navigate to: 👉 Entra ID → App registrations → New registration (until 2025: Identity → Applications → App registrations; in Azure Portal: Microsoft Entra ID → App registrations → New registration)
  2. Configure the following fields:
    • Name: FSI Server (or e.g., FSI Server Media Platform).
    • Supported account types: Select Accounts in this organizational directory only (Single tenant).
    • Redirect URI (optional):
      • Select a platform: Web (Important: Do NOT select "Single-page application (SPA)"!).
      • URL: https://<fsi-domain>/fsi/interface/ (Example: https://fsi.example.com/fsi/interface/ – Ensure the trailing slash / is included!)
  3. Click Register.
Platform 'Web' Required (Do NOT use 'Single-Page Application')

FSI Server utilizes the Backend-for-Frontend (BFF) pattern: the browser forwards the temporary authorization code and PKCE code_verifier to the Java backend, which exchanges them for tokens server-to-server using the Client Secret. If the platform is registered as a Single-page application (SPA) in Entra ID, Microsoft rejects the server-side code exchange with error AADSTS9002326 (Cross-origin token redemption is permitted only for the 'Single-Page Application' client-type).


Step 3: Record Tenant and Application IDs​

On the application Overview page, record the following two values:

  • Application (client) ID: e.g., 00000000-0000-0000-0000-000000000000 (used for clientId in settings.yml)
  • Directory (tenant) ID: e.g., 11111111-2222-3333-4444-555555555555 (used in issuerUrl in settings.yml)
Do Not Confuse Application (client) ID with Object ID (AADSTS700016 Prevention)

The Overview page displays three different GUIDs side by side:

  1. Application (client) ID → Copy this value into clientId in settings.yml.
  2. Object ID → Do NOT use! This is only the internal directory object ID. Putting it into clientId causes Microsoft Entra ID to reject every login with AADSTS700016: Application with identifier '...' was not found in the directory.
  3. Directory (tenant) ID → Copy this value into issuerUrl (https://login.microsoftonline.com/<Directory-tenant-ID>/v2.0).

Step 4: Verify Authentication Settings & PKCE​

  1. In the app menu, select Authentication.
  2. Under Platform configurations → Web, verify that the Redirect URIs list contains: https://<fsi-domain>/fsi/interface/ (with the trailing slash /).
  3. Under Front-channel logout URL:
    • Leave empty (or optionally set to https://<fsi-domain>/fsi/interface/).
    • (Note: Do not enter /fsi/service/oidc/logout into the Front-channel logout URL field—Front-channel logout uses browser GET requests in an iframe, whereas /fsi/service/oidc/logout is a server-to-server POST endpoint for OIDC Back-Channel Logout).
  4. Under Implicit grant and hybrid flows:
    • Ensure both Access tokens (used for implicit flows) and ID tokens (used for implicit and hybrid flows) are unchecked (disabled).
  5. Click Save.
Automatic PKCE (S256) Validation in Microsoft Entra ID

FSI Server automatically generates a cryptographic PKCE (S256) code_challenge on every login and sends the code_verifier alongside the Client Secret during the server-to-server token exchange. Microsoft Entra ID's v2.0 endpoints (/oauth2/v2.0/authorize and /oauth2/v2.0/token) automatically validate PKCE (S256) for Web applications out of the box—no extra PKCE toggle is needed in the Entra portal.


Step 5: Create a Client Secret​

  1. In the app menu, navigate to Certificates & secrets → Client secrets tab.
  2. Click + New client secret.
  3. Description: e.g., FSI Server Backend Secret.
  4. Expires: Choose according to company policy (e.g., 6, 12, 18, or 24 months).
  5. Click Add.
  6. CRITICAL: Copy the string in the Value column immediately and use it for clientSecret in settings.yml.
    • Do NOT copy the Secret ID column (which is a UUID). Using the Secret ID instead of Value causes token exchange to fail with error AADSTS7000215: Invalid client secret provided.
    • (The plaintext Value is only displayed once right after creation and is permanently masked once you leave the page).

Step 6: Configure Token Group Claims​

To inform FSI Server of user group memberships, Entra ID must include them in the ID token's groups claim:

  1. In the app menu, navigate to Token configuration.
  2. Click + Add groups claim.
  3. In the Edit groups claim flyout panel on the right, select the group types to include based on your license:
Setting in Edit groups claimEntra ID FreeEntra ID P1 / P2 (Recommended)
Select group types to includeCheck ☑ Security groups.Check ☑ Groups assigned to the application.
Group Filtering BehaviorNot available: Emits all security groups the user belongs to (up to 200).Emits only the security groups explicitly assigned to this application in Step 7, keeping the token small.
Customize token properties by type → IDExpand ID and keep ⦿ Group ID selected (default).Expand ID and keep ⦿ Group ID selected (default).
Emit groups as role claimsLeave ☐ unchecked (Mandatory!).Leave ☐ unchecked (Mandatory!).
Leave 'Emit groups as role claims' Unchecked!

When expanding the ID accordion section under Customize token properties by type, make sure Emit groups as role claims remains unchecked. If checked, Entra ID places the group GUIDs into the roles claim instead of the groups claim, and FSI Server will deny login because groups is missing.

Benefit of P1/P2 Group Filtering

If an employee belongs to more than 200 groups (the limit for JWT tokens such as the OIDC ID token; SAML tokens: 150), Entra ID cannot fit all group IDs into the token and triggers the Group Overage Issue (_claim_names). With P1/P2, enabling Groups assigned to the application ensures only the specific FSI connector groups are emitted, keeping tokens small, fast, and reliable.

  1. Click Add (or Save).

Step 7: Configure Enterprise Application (License Differences)​

Navigate to: 👉 Entra ID → Enterprise apps (or Enterprise applications) → Select FSI Server. (until 2025: Identity → Applications → Enterprise applications; in Azure Portal: Microsoft Entra ID → Enterprise applications → FSI Server)

Scenario A: With Entra ID Free (No Feature Plan)​

Entra ID Free Limitation

In the Free plan, Microsoft prohibits assigning groups to an Enterprise Application. Group assignment requires an Entra ID P1 or P2 license.

Free plan customers have two viable options:

  • Recommended Option for Free (Access Control Managed via FSI Server):
    1. Under Manage → Properties, set Assignment required? to No.
    2. Click Save.
    3. Security Model: Any tenant user can authenticate at Microsoft, but FSI Server's groupMapping strictly denies login (SSO login denied: user does not belong to any mapped group) to any user who is not a member of at least one mapped security group from Step 1.
  • Alternative Option for Free (Manual Per-User Assignment):
    1. Set Assignment required? to Yes.
    2. Under Users and groups, add every authorized employee individually as a user (note: in Step 6 you must still select Security groups, not Groups assigned to the application, on the Free plan).

Scenario B: With Entra ID P1 / P2 (Enterprise Standard)​

  1. Under Manage → Properties, set Assignment required? to Yes and click Save.
    • Any unauthorized tenant user is stopped directly at the Microsoft login prompt with error AADSTS50105.
  2. Under Manage → Users and groups → + Add user/group, assign the connector security groups created in Step 1:
    • FSI-Connector-Marketing
    • FSI-Connector-Products
    • FSI-Connector-Archive
    • FSI-Administrators

Additional P1 / P2 Security Features:​

  • Conditional Access (P1 / P2): Under Entra ID → Conditional Access (or Protection → Conditional Access), create a policy targeting the FSI Server Cloud App to enforce:
    • Multi-Factor Authentication (MFA).
    • Managed / Compliant devices (Intune compliant or Microsoft Entra hybrid joined).
  • Risk-Based Protection (P2 only): Automatically block sign-ins or prompt for secure password resets if Microsoft Entra ID Protection flags a user or sign-in risk.
  • PIM & Access Reviews (P2 only): Enforce periodic access recertification for sensitive archive access.

FSI Server Configuration (settings.yml)​

Configure the OIDC authentication module in settings.yml (located in the FSI Server configuration directory, e.g., /etc/fsi/fsi-server/config/settings.yml or ./config/settings.yml).

Restart FSI Server & Keep Only One Active oidc Module
  1. Single active oidc entry: FSI Server uses the first enabled type: "oidc" module in authModules. If you previously tested another IdP (such as Keycloak or authentik), remove or set enabled: false on the previous oidc entry, and make sure no leftover manual endpoint overrides (authorizationUri, tokenUri, jwksUri) remain in the block.
  2. Restart required: Changes to settings.yml are loaded only at server startup. Restart FSI Server after saving settings.yml so the new clientId, clientSecret, and issuerUrl take effect.

The example below shows all parameters, highlighting mandatory settings and default values:

settings.yml
authentication:
authModules:
- type: "oidc" # Mandatory: Module type
enabled: true # Default: true
name: "Microsoft Entra ID (SSO)" # Display label on login button
provider: "entra" # Provider identifier

# 1. Credentials from Entra ID App Registration (Steps 3 & 5)
# IMPORTANT: Use Application (client) ID (NOT Object ID) and Client Secret Value (NOT Secret ID)!
clientId: "00000000-0000-0000-0000-000000000000" # Mandatory: Application (client) ID
clientSecret: "your-client-secret-value-from-entra" # Mandatory: Client secret Value

# 2. Issuer URL (Endpoints are automatically discovered via .well-known/openid-configuration)
# Mandatory: Replace with your Directory (tenant) ID; must end with /v2.0
issuerUrl: "https://login.microsoftonline.com/11111111-2222-3333-4444-555555555555/v2.0"

# 3. Redirect URI
# Default: Uses base request URL if omitted.
# Recommendation: Specify explicitly with [IP_ADDRESS] to match Entra ID registration.
redirectUri: "https://[IP_ADDRESS]/fsi/interface/"

# 4. Token Claims
usernameClaim: "preferred_username" # Default: "preferred_username"
groupsClaim: "groups" # Default: "groups"

# 5. User Provisioning & Session Mode
autoProvision: true # Default: true (provisions user upon first SSO login)

# 6. Group Mapping: Map Entra ID Group Object IDs (GUIDs from Step 1) to FSI Server Groups
# Note: FSI Server groups must correspond to the group names
groupMapping:
# Full Administrator (Access to server settings & all connectors)
"44444444-dddd-eeee-ffff-444444444444": "administrators"

# Marketing Team (Mapped to marketing connector)
"11111111-aaaa-bbbb-cccc-111111111111": "marketing"

# Products Team (Mapped to product catalog connector)
"22222222-bbbb-cccc-dddd-222222222222": "products"

# Archive Team (Mapped to internal archive connector)
"33333333-cccc-dddd-eeee-333333333333": "archive"

# Optional: File-based XML authentication module as local administrative fallback
- type: "file"
enabled: true

Troubleshooting & Common Issues​

Error Code / SymptomPotential Root Cause by License PlanResolution
AADSTS700016: Application with identifier '...' was not found in the directory1. Wrong GUID in clientId: The App Registration's Object ID or a Group Object ID was entered into clientId instead of the Application (client) ID.
2. Wrong Tenant ID: The GUID in issuerUrl does not match the Directory (tenant) ID where the app was registered.
3. FSI Server not restarted: FSI Server is still sending an old clientId from memory.
1. Open Entra ID → App registrations → FSI Server → Overview and copy Application (client) ID into clientId and Directory (tenant) ID into issuerUrl.
2. Ensure only one oidc module is enabled in settings.yml and restart FSI Server.
AADSTS7000215: Invalid client secret provided1. The Secret ID (UUID) was copied into clientSecret instead of the Value string.
2. The client secret has expired.
Navigate to Certificates & secrets → Client secrets, create a New client secret, copy the Value column (not Secret ID), update clientSecret in settings.yml, and restart FSI Server.
AADSTS50011: The reply URL specified in the request does not matchApplies to all tiers: Mismatch in trailing slash /, hostname, or HTTP vs. HTTPS scheme.Ensure https://<domain>/fsi/interface/ has the exact same trailing slash / and protocol in both Entra ID (Authentication → Web → Redirect URIs) and settings.yml.
AADSTS9002326: Cross-origin token redemption is permitted only for the 'Single-Page Application' client-typeApplies to all tiers: Redirect URI was registered under the Single-page application (SPA) platform instead of Web.Under Authentication in Entra ID, delete the Single-page application platform configuration and add the Redirect URI under the Web platform.
AADSTS50105: Your administrator has configured the application to block users unless they are specifically granted accessTriggered when Assignment required? = Yes is active on the Enterprise Application.With P1/P2: Assign the user's security group under Enterprise applications → FSI Server → Users and groups.
With Free: Either assign the user individually or set Assignment required? to No under Properties.
License error when assigning a group to the Enterprise AppEntra ID Free limitation: Group assignment to Enterprise Applications requires P1 or P2.Upgrade to P1, assign users individually, or set Assignment required? to No (access control is still enforced by FSI Server's groupMapping).
Token missing groups (Group overage claim / _claim_names)User belongs to >200 groups (common in large tenants without P1/P2 group filtering).On P1/P2, configure the group claim under Token configuration to emit Groups assigned to the application. On Free, keep the user's total security group count under 200.
User logs in successfully at Microsoft, but FSI Server denies login (user does not belong to any mapped group) or shows no connectors1. Group Object ID (GUID) in groupMapping does not match Entra ID.
2. Groups assigned to the application was selected in Step 6 on an Entra ID Free tenant where no groups could be assigned in Step 7.
3. Emit groups as role claims was checked in Step 6.
4. Target FSI Server group does not exist in groups.yml.
1. Cross-reference group Object IDs between Entra ID → Groups and settings.yml.
2. On Entra ID Free, select Security groups (not Groups assigned to the application) under Token configuration.
3. Ensure Emit groups as role claims is unchecked under Token configuration → groups → ID.
4. Verify the target group names exist in FSI Server.