Replies: 5 comments 2 replies
-
Access denied is a permission issue and not an issue with the module itself. Moving this to discussion forum since it is a permission issue and nothing to do with the module itself |
Beta Was this translation helpful? Give feedback.
-
I've tried both; an Azure AD app registration and a SharePoint Online app registration; Using SPO App Reg, Navigated to Grant Permission https://$Tenant-admin.sharepoint.com/_layouts/15/appinv.aspx Provisioning OneDrive fails using the following command: |
Beta Was this translation helpful? Give feedback.
-
I recreated the app registration for SPO with the link you provided. Permissioned it using: I can still connect to pnp but now I'm getting a different error when hitting |
Beta Was this translation helpful? Give feedback.
-
Same behavior when |
Beta Was this translation helpful? Give feedback.
-
Additionally behavior also occurs with Connect-PnPOnline -Url $Url -DeviceLogin. Behavior does not occur Connect-PnPOnline -Url $url -UseWebLogin -ForceAuthentication (Thank you @ztrhgf for the workaround.) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reporting an Issue or Missing Feature
Error running command
Request-PnPPersonalSite -UserEmails $Upn
Expected behavior
Expect the command to provision the OneDrive site
Actual behavior
HResult : -2146233087CategoryInfo : InvalidOperation: (:) [Request-PnPPersonalSite], PSInvalidOperationExceptionFullyQualifiedErrorId : InvalidOperation,PnP.PowerShell.Commands.Admin.RequestPersonalSiteException: The remote server returned an error: (403) Forbidden.Stack:
Steps to reproduce behavior
ClientId and Secret were generated via SPO
ClientId was giving the following permission:
<AppPermissionRequests AllowAppOnlyPolicy="true"> <AppPermissionRequest Scope="http://sharepoint/social/tenant" Right="FullControl" /> </AppPermissionRequests>
What is the version of the Cmdlet module you are running?
1.12.0
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions