Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharePoint PnP - OneDrive PreProvisioning via App Registration & App Principal #9997

Open
1 of 9 tasks
DOMISTAM opened this issue Nov 5, 2024 · 0 comments
Open
1 of 9 tasks
Labels
Needs: Triage 🔍 Awaiting categorization and initial review.

Comments

@DOMISTAM
Copy link

DOMISTAM commented Nov 5, 2024

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • PowerShell Version: 7.3.1
  • PnP.PowerShell Version: 2.5.0
  • API Permission: AllSites.FullControl, Sites.FullCOntrol.All, User.ReadWrite.All (SharePoint Online - Application Permisssion)
  • API Authentication: Secret Key or Certificate Thumbprint
  • App Prinicipal Try 1: <AppPermissionRequestsAllowAppOnlyPolicy="true"> <AppPermissionRequest Scope=" http://sharepoint/content/tenant" Right="FullControl" />
  • App Prinicipal Try 2: <AppPermissionRequestsAllowAppOnlyPolicy="true"> <AppPermissionRequest Scope=" http://sharepoint/social/tenant" Right="FullControl" />

Issue description

Hi all, we are trying to carry out the OneDrive pre-provisioning via an automated way, where we have followed the instructions: https://pnp.github.io/powershell/cmdlets/Request-PnPPersonalSite.html. Unfortunately, we always get the following error message, although we believe that we have set up the app permission and / or app principal correctly.
image

The commands "Get-PnPSites", "Get-PnPTenantSite" and "Get-PnPUserProfileProperty -Account XY" work. The error occurs with the command "Request-PnPPersonalSite -UserEmail XY".

Has anyone already been able to run OneDrive pre-provisioning via an automated script?
Which domain must be entered for the app principal? (contoso.onmicrosoft.com or contoso.com?)
Which redirect URL must be entered for the app principal? (contoso.sharepoint.com / contoso-my.sharepoint.com / contoso-admin.sharepoint.com?)

Kind Regards, D

@VesaJuvonen VesaJuvonen added the Needs: Triage 🔍 Awaiting categorization and initial review. label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Awaiting categorization and initial review.
Projects
None yet
Development

No branches or pull requests

2 participants