We have a need to add users who have direct reports to a security group. We're currently using, If the Direct Reports' property is not empty
, but this also grabs users who are managers of shared mailboxes.
How can we update our scheduled task to exclude users who are only managers of shared mailboxes? I imagine it has to do with the recipientTypeDetails
, but I can't figure out how to implement it.