Rule-based membership fails for security enabled distribution group with error "The term 'Add-DistributionGroupMember' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." ![image.png](?qa=blob&qa_blobid=3385976402919910208)
So adaxes obviously know it is distribution group, but somehow forgets to connect to Exchange Online before running this PowerShell command.
Here is rule based set up.![image.png](?qa=blob&qa_blobid=1300641704967510498)