Jump to content

Recommended Posts

Posted

Hello, as part of new user creation we need to create the subject folders in OneDrive so they at least start with a bit of structure to save into. I thought the PnP.PowerShell module was the answer.

 

$SharePointSite = "https://schoolname-my.sharepoint.com/personal/test10_schoolname_com"

$FolderName = "Geography"

Resolve-PnPFolder -SiteRelativePath "$SharePointSite/Documents/$FolderName"

 

but I am getting:

Resolve-PnPFolder : Access denied.

 

even though I am a site collection admin on all user folders.

 

Any ideas how to create the folders in users OneDrive's?

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...