Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Running a Powershell command when a new user is created on Office365

Hi everyone,


I'm looking for an automatic way to enter one or more powershell commands after specific events/triggers.


The one I want to start setting up is the following command in powershell after an active user has been created (no shared mailboxes or groups)


Set-MailboxFolderPermission -Identity "" -User Default -AccessRights Reviewer


I know that somewhere the connection between the O365 portal has to be made also (Flow has the same account so I'm assuming this won't be the biggest problem)


Anyone know how to start setting this up?


Thanks in advance!


Kind regards,


Community Support
Community Support

Re: Running a Powershell command when a new user is created on Office365

Hi @SteinG,


Unfortunately, there is no way to perform the PowerShell command.

If you want to the PowerShell connector could be added in MS Flow, there is an IDEA you can vote to make it come true:


Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021


Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (8,510)