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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add user as a member o...
Power Automate
Unanswered

Add user as a member of shared mailbox

(0) ShareShare
ReportReport
Posted on by

As part of our onboarding process, we are using power automate to add users to relevant, groups, security groups and shared mailboxes.

 

However, I cannot find the appropriate operation to add a user to an existing shared mailbox. Help!

 

Thanks

Categories:
I have the same question (0)
  • Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    @ttusin 

     

    If add the member to the group with the shared mailbox dosen't work, I'm afraid there isn't functionality to do this in PowerAutomate today. 

    Heartholme_0-1653026417828.png

    So you have to

    1. Look into calling a desktop PowerAutomate flow from the cloud flow to do this or

    2. Send an email to a person who can do it manually. 

     

    The following steps to add users in a shared mailbox copied from https://www.nucleustechnologies.com.  

     

    1. Sign in to Exchange Admin Center and go to Groups and select Shared Mailboxes.
    2. The shared mailboxes will appear on the screen, select the mailbox to which you want to add members to.
    3. From the Details Pane menu, select Edit.
    4. Now, click the ‘Add members‘ button on the top.
    5. The list of users in your organization will display in the pane. You can select multiple users by selecting the checkbox next to their names, or you can also search for the users if you have a long list.
    6. After selecting the users, click Save.

    It will take at least 60 minutes to show up the added users to the shared mailbox.

     

    { If my post answered your question, please Accept it as a solution ✔ }
    { This will in turn help others find solutions to similar questions }

    Best Regards
    Heartholme

     

     

  • original_paulfi Profile Picture
    4 on at

    it's crazy that there isnt an easier way, but you can call an azure runbook from power automate.  and the runbook can contain the powershell.  

    original_paulfi_0-1705106205627.png

     

    over in azure, create a runbook with the powershell calls

    Add-MailboxPermission -Identity $MGREmail -user $User -AccessRights FullAccess
    Add-RecipientPermission -Identity $MGREmail -Trustee $User -AccessRights SendAs -Confirm:$false

    the runbook needs an automation acccount.  and you have to auth using it
    Get-AutomationConnection -Name 'AzureRunAsConnection'
    $UserCredential = Get-AutomationPSCredential -Name "Ex_Auto"
    Connect-ExchangeOnline -Credential $UserCredential
     
    i spent "some" time figuring out how to auth from a runbook. it was definitely the hardest part as runbooks were very new to me.   

    i am not sure why the exchange folks can't/won't expose some stuff in Graph or make some native Flow options. 
     



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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard