Integration with Microsoft Entra ID

The Microsoft Entra ID integration synchronizes the organization’s users with the Microsoft directory. Changes in the directory are reflected in the application:

  • A new user from Entra ID is automatically added to the FlexiProject user list and can sign in with a Microsoft account.
  • A user removed from the directory is marked as deleted.

With a Microsoft 365 package, you can also pull all-day absences from the Outlook calendar.

An administrator configures the integration in the System settings menu, on the Microsoft Entra ID tab (see System settings).

Important: When the organization uses an individual integration with a local Active Directory, users are synchronized only through it. An additional Microsoft Entra ID connection then enables only the Microsoft 365 integration and calendar synchronization.

Registering the application in Microsoft Entra ID

The first step is registering FlexiProject as an application in Microsoft Entra ID. Registration gives the administrator the connection parameters: Tenant ID, Client ID and Client Secret.

The steps are done in the Microsoft portal, so item names depend on its current version.

  1. Sign in with a Microsoft 365 account at office.com and open the Administrator tool.
  2. In the menu on the left, choose View all, and in the advanced menu, choose Microsoft Entra ID.
  3. In the Microsoft Entra ID menu, choose App registrations. The list of registered applications is displayed.
  4. Click + New registration. The application registration form opens.
  5. Enter a name for the application, for example “FlexiProject”, and choose the account type Single tenant.
  6. Grant the application permissions to read calendars, groups and user information.
  7. Click Register. The application is registered in Microsoft Entra ID.

The connection data

After registration, the portal opens the Overview section. Two values come from it: the Directory ID (Tenant ID) and the Application ID (Client ID). The third value, the client secret, still has to be generated:

  1. Go to the Certificates & secrets module in the menu on the left.
  2. Click + New client secret. The secret form opens.
  3. Choose an expiration time (two years is recommended) and enter a description that helps you recognize the secret.
  4. Click Add. The generated secret appears on the Client secrets list. Click Copy to clipboard to copy its value.

Important: When the secret expires, the connection stops working, and the connection edit window displays the warning: The connection to Microsoft Entra ID is inactive. Enter a new client secret to restore synchronisation. You then have to enter a new key (see Creating the connection).

Creating the connection

The connection needs three parameters from the Microsoft portal: Tenant ID, Client ID and Client Secret (see Registering the application in Microsoft Entra ID).

System settings, Microsoft Entra ID tab with the Add connection button highlighted

  1. In the main menu, choose System settings and go to the Microsoft Entra ID tab.
  2. Click Add connection. The Connection to Microsoft Entra ID window opens.
  3. Enter the Tenant ID (the tenant identifier), Client ID (the application identifier) and Client Secret (the secret value copied in the portal).
  4. Optionally, limit the imported users to selected groups. In the Import on the basis of user group IDs (separate with commas) field, enter Entra ID group object IDs separated by commas. Only IDs are accepted, not group names. An empty field means importing all users.
  5. Click Save. With correct data, the system closes the window, displays the message Connection to Microsoft Entra ID successfully established and adds a row for the connection on the page. With incorrect data, the system displays the message: Connection to Entra ID is invalid. The client secret may have expired — enter a new one. The window then stays open.

Connection to Microsoft Entra ID window with the Tenant ID, Client ID, Client Secret and user group IDs fields highlighted

Connection list

The table has the following columns:

  • Tenant ID
  • Client ID
  • Status (Active, No connection or Synchronization error)
  • Last synchronization – the number of synchronized users and the time since synchronization

To manage a connection, click the three-dot icon next to the row and choose Edit, Delete or Sync. Sync starts a synchronization right away, and the system displays the message Connection to Microsoft Entra ID successfully established or Failed to connect to Microsoft Entra ID.

In the edit window, the client secret field is empty. To replace an expired key, enter a new one in this field.

Important: Deleting the connection interrupts the synchronization of user accounts and their statuses with Microsoft Entra ID. After you click Delete, the system asks for confirmation.

User synchronization

After the connection is created, FlexiProject synchronizes users periodically. Accounts with an email address are pulled. The Sync button and the invitations switch are also available.

  • A new user in Entra ID gets an account in FlexiProject and becomes an active user (an account disabled in Entra ID is not created).
  • An existing FlexiProject user is linked with the Entra ID account by email address.
  • A user who is no longer in the directory is marked in FlexiProject as Deleted and loses access.
  • A synchronized user has a sync icon by the status on the user list. A user added manually and absent from Entra ID has no such icon (see User list).

With the Organizational structure module switched on, synchronization can also build departments from managers in Entra ID (see Automatic import of the structure from Microsoft Entra ID).

Invitations for Entra ID users

The Invitation emails for Microsoft Entra ID users switch is under the connection table. After you switch it on, every new user added automatically from Entra ID receives a welcome message with an invitation to FlexiProject. The change is saved immediately.

The other email notifications do not depend on this setting (see Email notifications).

Outlook calendar synchronization

The Microsoft Entra ID connection also lets you record users’ all-day absences from the Outlook calendar (Microsoft 365) in their availability. The absences go to the user’s availability calendar in the Resources in the organization module.

  1. In the main menu, choose System settings and go to the Resources tab.
  2. Switch on the Outlook calendar connection option (visible when the Microsoft Entra ID connection is active). The system starts recording absences from Outlook in users’ availability.

Important: Only all-day events with the Out of office status that the user organizes themselves go to availability. They must be entered in Outlook by synchronized users.

In the calendar in the Resources module, they are marked with a sync icon and cannot be edited. They disappear automatically after the event is deleted in Outlook, the option is switched off or the connection is broken (see Resources module settings).