No, it does not. Dynamic DLs are Exchange objects, and the Graph currently has limited (zero) support for Exchange admin tasks. Use PowerShell instead.
Does Graph API support dynamic distribution lists ?
Does Graph API support DDLs ?
I tried using groups in URI with beta and V1.0 but it only retrieves the DLs and M365 unified groups
2 answers
Sort by: Most helpful
-
-
Prakash Tandukar 1 Reputation point
2021-05-22T08:54:34.477+00:00 As it takes ~50 seconds to fetch a list of Dynamic DL from c# using PowerShell script and our client cannot wait for that long period, we are thinking of the following alternative way to support Dynamic DL in our application.
Alternative way: instead of showing the list just add a text box to allow to enter Dynamic DL email from the client on the Page. To validate if that is the valid Dynamic DL or not, we can do the following two checks:
- Use EWS ExpandGroup to see if that group has any members
- Make the following Graph API call to search group by its email address
- https://graph.microsoft.com/v1.0/groups?$filter=mail eq 'ddl-test-group@test .onmicrosoft.com'
If we get any user members from EWS ExpandGroup and we do not get any result from that Graph API call "Group search" - then I think, we can confirm that it is a valid Dynamic DL.
Once we confirm, later on, we can pull the members ( users) of that Dynamic DL whenever we need it at our application.
Would appreciate it very much if there is any potential risk to implement it.
Thanks,
Prakash