web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adding User to Distro ...
Power Automate
Suggested Answer

Adding User to Distro Groups

(0) ShareShare
ReportReport
Posted on by 6
Hello, 

I have created a flow which we will be using to add a newly created user to all the same 365 groups as an already active employee. 
Now this flow works for most of the groups, however i am getting a error when it comes to adding the user to a distribution group. 
I understand this to be something that isnt possible via the HTTP calls iv made to add the user to the other groups. 
Is there a way to catch the M365 groups this errors on (Which are only these distro groups) and then add the new user to them? 
Any help would be massively appreciatted! 

Tristan
Categories:
I have the same question (0)
  • Tomac Profile Picture
    4,048 Moderator on at
    We'll need a bit more information to be able to help. Can you pose a screenshot if your flow with all of the actions expanded, along with any error messages that show up on the attempt to add the user to a DL?
  • Suggested answer
    Tomac Profile Picture
    4,048 Moderator on at
     
    It looks like DLs can't be queried or updated via Power Automate, so you'll need to use a workaround using a custom connector and an account with admin privileges: https://www.bythedevs.com/post/working-with-o365-groups-dl-s-and-security-groups-in-power-automate
     
    I recommend using a Distribution Group or Mail Enabled Security Group instead, so you can use Power Automate's built in connectors to work with them.
  • TW-28071357-0 Profile Picture
    6 on at
    The test actually says successful, however the user still doesnt get added to the distribution group. 
  • Tomac Profile Picture
    4,048 Moderator on at
     
    Your screenshot says the user account trying to call the API doesn't have the right permissions. Does that account have domain permissions to create and edit Distribution Groups?
  • TW-28071357-0 Profile Picture
    6 on at
    Hello, 

    It does have all the correct permissions, which is what i find strange. 
    I have tried using powershell and also tried multiple different ways within the flow but the same issue pops up everytime.
  • Suggested answer
    Tomac Profile Picture
    4,048 Moderator on at
     
    Please verify the account making the API call has the following permissions in Entra ID/ Azure AD:
     
    Group.ReadWrite.All: Allows the signed-in user to create, read, update, and delete groups.
    Directory.ReadWrite.All: Required if you're modifying directory-level properties or managing group membership.

    The account must also be assigned a role such as Groups Administrator, User Administrator, or Directory Writers in Entra ID/Azure AD
     
    If this comment resolved your issue, please remember to mark it as the answer to assist other users with this issue.
  • TW-28071357-0 Profile Picture
    6 on at
    Hello, 

    Can verify iv checked all those things and they are all set correctly. 
    Iv read in some places online that Power Automate Flows cant add new users to distribution groups which is why i have tried to catch the groups that fail to add the new user and then add them via a powershell script, again within the flow. 
    The script says it runs successfully but still fails to add the user to the distribution group. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard