I have noticed discrepancies in group memberships: users reporting this see 485 members in Outlook, via groups, and 475 members otherwise. The issue is about users being added via outlook, which are then visible in the outlook group interface, but somehow they do not get added to the underlying EXO workflow and they don't get group emails.
I believe I can confirm the discrepancy via the code below - I can also see 475 members by looking at the permissions of the related SharePoint online site, while the Outlook online interface shows 485 members.
Is there any explanation for this, is it a internal sync issue, is it common/known?
I am wondering how to get the different group views in sync - besides a sync script. I would rather not manage this via support case, if possible, as it would become a very lengthy exercise.
-- members count via Graph
/Users/myself/GIT> $lstmembers = get-mggroupmember -GroupId (Get-MgGroup -Filter "DisplayName eq 'techdevgroup'").id -all
/Users/myself/GIT> $lstmembers.count
475
-- members count via ExchangeOnlineManagement
/Users/myself/GIT> $lstmemberslinks = Get-UnifiedGroupLinks -LinkType members -Identity techdevgroup
/Users/myself/GIT> $lstmemberslinks.count
485
-- members count via az.resources
/Users/myself/GIT> $lstmembersazad = Get-AzADGroupMember -GroupDisplayName techdevgroup
/Users/myself/GIT> $lstmembersazad.count
475
-- double check the group id
/Users/myself/GIT> Get-UnifiedGroup -Identity techdevgroup | ft displayname, external*
DisplayName ExternalDirectoryObjectId
----------- -------------------------
techdevgroup ac9c43ce-31ab-4886-9402-a955c6ee2d06
/Users/myself/GIT> Get-MgGroup -GroupId ac9c43ce-31ab-4886-9402-a955c6ee2d06 | ft displayname
DisplayName
-----------
techdevgroup
/Users/myself/GIT> get-azadgroup -DisplayName techdevgroup | ft displayname, id
DisplayName Id
----------- --
techdevgroup ac9c43ce-31ab-4886-9402-a955c6ee2d06