We have a PowerShell script to create Office 365 users, which creates the user and then does all the Exchange Online admin, putting them in the right Distribution groups, sharing their calendars, setting their time zones etc. etc.

Would it be possible to trigger this script from a SharePoint Online workflow, such that it runs when a hiring manager creates an item in a 'New User Request' list?

2 Answers 2


You can't do it. Exist only one way do it, it's write your custom web service and call it from workflow.


Azure Functions allows you to run PowerShell scripts and trigger through a HTTP call.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.