Replies: 3 comments 3 replies
-
I'm very interested too in that scenario ! |
Beta Was this translation helpful? Give feedback.
-
It seems every attempt I did to use Connect-PnpOnline with the token parameters fails. Even if I successfully connect using credentials, and retrieve token with Get-PnPAccessToken or GetPnPAppAuthAccessToken, those tokens do not allow me to perform a Connect-PnPOnline. I wonder if his feature is really implemented and functionnal ... |
Beta Was this translation helpful? Give feedback.
-
Hi @erwinvanhunen , Maybe you could help us to understand wether what we want is achievable, and how we should do things ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have made a WebPart in SPFX in order to call an Azure Function from Sharepoint
This Azure function is in PowerShell and I need to call the PnP Powershell function from there
My main goal is to impersonate the user that is calling the function from the web part.
Previously, I could connect properly to PNP services with hardcoded user credentials.
I tried to connect with "Connect-PnpOnline" with the Token generated from the AadTokenProviderFactory by my WebPart every Pnp's function that I called sends me back a "401 Unauthorized"
I've succeeded to do so with Microsoft Graph's Modules but I can't figure out how to make Pnp's access token work
Can you explain to me how to use Connect-PnPOnline and AccessToken to make impersonated PnP Powershell calls in my azure function?
Is there a different way to retrieve the expected token?
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions