Microsoft Graph PowerShell SDK Module OneDrive Folder Permissions Assignment

Copper Contributor

As an M365 Global Admin, I have been tasked with creating a new folder in other users OneDrive root folder (Documents) we can call that folder 'myFolder', then I need to assign a Microsoft Azure Security group ('myGroup') to that folder with read/write permissions. I have a list of users (taking input from txt file of UPNs), and am able to loop through the users and create the folder, so step one is possible, but where I am failing is the assignment of the permissions, am using PowerShell 7 and the MS Graph PowerShell Mod, actually for the folder creation I used the API and invoke-method, but I am running into problems since OneDrive is on top of SharePoint, I am not sure how to accomplish this task. Any help would be greatly appreciated!

Original Post:
https://techcommunity.microsoft.com/t5/microsoft-365/microsoft-graph-powershell-sdk-module-onedrive-...

2 Replies
Could you please share your code and error message
Hi @Vladilen, thank you for your reply, I have another thread here:
https://techcommunity.microsoft.com/t5/onedrive/microsoft-graph-powershell-sdk-module-onedrive-folde...

With code and information on that group, please feel free to look at it and reply, again, thank you for your help and review this issue with me!