Populate shared mailboxes into a dynamic M365 group

Jacob Derrick 20 Reputation points
2024-08-23T12:56:51.48+00:00

Hi, all

Feel like I've been on Google searching this question for hours now...

Does anyone know how to dynamiclly add all organisation shared mailboxes into an M365 group?

So far, the only way I've found to do this is giving all shared mailboxes a custom attribute and then using the below to add them. However this does not automatically pull in future shared mailboxes without manually adding the attribute and defeating the purpose.

(user.extensionAttribute1 -eq "SharedMailbox")

If anyone had the rule syntax for adding all shared mailboxes that would be cool

Thanks

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,364 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 147.6K Reputation points MVP
    2024-08-23T13:31:26.16+00:00

    Thats not one of the allowed attributes you can use in Azure:

    https://learn.microsoft.com/en-us/entra/identity/users/groups-dynamic-membership

    However you can create an Exchange DDG that will do this based on RecipientTypeDetails

    https://learn.microsoft.com/en-us/powershell/exchange/recipientfilter-properties?view=exchange-ps&preserve-view=true


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.