Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Hi Mikee,
yes, indeed, to my best knowledge and from what I've seen in my client's system, the issue started at the creation of an M365 group and/or adding external recipients to that group.
The situation I've reconstructed in my old cerebral processing unit:
- a user (sender side) created a new M365 group
- one or more external recipients got added to that group
- that triggered the creation of a Guest user object in Azure AD
- as this one should be a recipient in a distribution group (which is a function of the M365 group), a sync is triggered from AAD to EXO directory, where a MailUser / GuestMailUser is created.
--> and here seems to be the point where the error happened. At this stage for one external e-mail address two MailUsers were created.
(Note: I did not reproduce my theory to avoid anything else to break in this system.)
On the other hand, removing the duplicate MailUsers doesn't work, because (again, to my best knowledge and from what I've tested in my client's system):
- Remove-MailUser <external e-mail address> fails, because there are 2 objects returned. Needs to be a unique identifier.
- Remove-MailUser <distinguishedname of 1st MailUser> obviously calls upon AAD to delete the AAD object, which in turn creates another call to ExO directory to remove the MailUser. The latter somehow fails, which results in the MailUsers are still present, though the corresponding AAD object was deleted.
-> It can be found in the "Deleted Users" in EntraID.
-> Unfortunately no other sync seem to happen.
-> Even purging the object from Deleted Users did not trigger a sync. The MailUsers just stay.
- Trying to remove a MailUser in another attempt immediately fails with an error, saying, there is no corresponding object in AAD.
At this point I had to engage the support contractor.
I hope I have been able to explain my experience clearly.
Cheers, Alex