Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Connect to Microsoft Graph with Certificate #2805

Answered by fastlaneb
zapftho asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @zapftho Yes, you can use the certificate thumbprint method to connect with a certificate:

Connect-PnPOnline -Url "siteUrl" -ClientId "clientID" -Tenant "tenantName" -Thumbprint "certThumbprint"

As you mentioned the scopes are defined in the app reg. You do need to register the cert in the app reg too. I'm not sure why you need to use "AADDomain". Would you be able to clarify that?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zapftho
Comment options

Answer selected by zapftho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants