Connect-PNPOnline with certificate works but can't run Get-PNPWeb, raises an error 401 #1518
Unanswered
SoldadoCOD
asked this question in
Q&A
Replies: 1 comment
-
I think I know why is this, checking the source code, the GetWeb.cs file, it looks like it is using the Client Object model who doesn't support the usage of a certificate to get the token, either you use a use account or an Add-in ID & Secret authentication, which I didn't want to use. My solution was to use Graph SDK but I still miss some properties, like ItemCount from lists. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Connect-PNPOnline using a certificate, but when I use the cmdlet Get-PNPWeb it just throw 401 unauthorized.
It works if I use an interactive connection (using my user account and password with MFA). I make a similar code in C# with the certificate and it works perfectly, what am I missing?
Beta Was this translation helpful? Give feedback.
All reactions