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

Create a Flow to change Site Collection Admin assignment

Hi all,

I need to solve this puzzle:

When an employee leaves the company, he has a OneDrive account with a SharePoint site linked to it.

The idea is to create a Flow to make the Manager the new SharePoint site collection admin.


This way he has the option to either delete it or take ownership of it. Wondering if I would be able to do that with the SharePoint trigger: Grant access to an item or a folder?



Will it work for our manager in this case since he does not have the access to the SharePoint site, to begin with? or should I use PowerShell for this requirement?


Thank you,



Super User
Super User

Hi @JuanSimon 


Grant access to an item or a folder is giving permission to a specific folder or item. In your case you need to add a user to give full permission of the list or library. For that you need to use Send an HTTP trigger to SharePoint action step. Please see below. 


How to manage permissions on a SharePoint List Item using Microsoft Flow – Add Contribute permission...



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up

Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Regular Visitor

Hi, your link does not provide the solution to change the Collection Admin.

You can manually reassign the employee's OneDrive: Step 4 - Give another employee access to OneDrive and Outlook data - Microsoft 365 admin | Microsoft... 

I wonder if it is possible through Azure AD (where we have a group with a manager attached to it.)?

Has anyone automated it this?

Is this a desktop flow/PowerShell job only due to security concerns?




Juan Simon

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,333)