Dynamic distribution group query

Dudek, Pawel 1 Reputation point
2022-12-28T12:36:30.413+00:00

Hello,

I would like to create a dynamic distribution group with query for particular OU where computers objects are located only. All computers objects have an owner in attribute "ManagedBy".
What I need to have is to get these all users from "ManagedBy" attribute and put them into distrubution group.
I'm not able to figure out how to deal with it, so I would be very grateful for any help in this area.

Kind Regards,

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 159.7K Reputation points MVP Volunteer Moderator
    2022-12-28T14:00:16.79+00:00

    Perhaps update a custom attribute with the managedby value and create the DDG based on that

    https://learn.microsoft.com/en-us/exchange/recipients/mailbox-custom-attributes?view=exchserver-2019#custom-attribute-examples

    274517-image.png

    0 comments No comments

  2. Dudek, Pawel 1 Reputation point
    2022-12-29T12:38:45.367+00:00

    Hi Andy,

    What I need to have is that DDG will search within 'machines OU' all users which are in parameter "managed by" for each machine.
    So DDG will have machine owners in specify OU.
    Please see screen below. What I'm getting right now once I'm trying to create a query is that only machines are included to this DDG, not users which I wanted to have.

    274819-ddg.png

    0 comments No comments

Your answer

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