Office 365 / Azure Active Directory with Legacy Office365 Connector

Last modified 22 Apr 2021 17:31 +02:00
This functionality is obsolete. It is no longer supported or maintained.


Provisioning works well.
Synchronization works well


The connector can be used for provisioning to Office 365 and Azure Active Directory including license assignment


Office365 Setup

Prior to configuring the resource within midPoint it is necessary to create a service principal within Office 365/Azure Active Directory, using the Azure Active Directory Powershell create a service princiapl as follows:

  • Authenticate to Azure Active Directory using .Authenticate

  • Create the Service Principal.Create SPN

New-MsolServicePrincipal -ServicePrincipalNames "OpenICF Office365 Connector" -DisplayName "OpenICF Office365 Connector"

This step returns the symmetric key:`The following symmetric key was created as one was not supplied cbtCp+GYWm1Zar/ZsaOEadvJxOuO8Qx+f86EW2rHudc=`Record this as you will need this in the midPoint resource configuration.

  • Retrieve the ObjectId of Service Principal .retrieve user

Get-MsolServicePrincipal -ServicePrincipalName "OpenICF Office365 Connector"

ExtensionData         : System.Runtime.Serialization.ExtensionDataObject
AccountEnabled        : True
Addresses             : {}
AppPrincipalId        : 28fa027a-0159-40cc-9449-a0fb08a41723
DisplayName           : OpenICF Office365 Connector
ObjectId              : 4d412a9f-f18e-47b5-bvea-f8eda1655d0
ServicePrincipalNames : {28fa027a-0159-40cc-9449-a0fb08a41723, OpenICF Office36
                        5 Connector}
TrustedForDelegation  : False
  • Assign administrator rights to the service principal name (the role ObjectId is global and always the same across all Office 365 tenancies).Assign Rights

Add-MsolRoleMember -RoleObjectId "62e90394-69f5-4237-9190-012177145e10" -RoleMemberType ServicePrincipal -RoleMemberObjectId 4d412a9f-f18e-47b5-bvea-f8eda1655d0

Resource Configuration Example



  • Symetric key is the value returned when creating the service principal name.

  • The principalID is the value of AppPrincipalId of the user.

  • For both of them, see above