Skip to main content

Notifications

Community site session details

Community site session details

Session Id : STFN1eRo5hQnAgxWeSUjEQ
Power Automate - Building Flows
Unanswered

Add user as a member of shared mailbox

Like (0) ShareShare
ReportReport
Posted on 19 May 2022 16:30:46 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

  • original_paulfi Profile Picture
    4 on 13 Jan 2024 at 00:41:36
    Re: Add user as a member of shared mailbox

    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. 
     



  • Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on 20 May 2022 at 06:04:32
    Re: Add user as a member of shared mailbox

    @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

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started