Skip to content

Get SharePoint online user access token without registering as app #390

Answered by jansenbe
krunal039 asked this question in Q&A
Discussion options

You must be logged in to vote

To get an access token you need an app, there's no way around. In PnP PowerShell you might not have created an app but in that case you're reusing an other app like the PnP Management Shell app or the SPO Management Shell app. You'll then get an access token with the permissions defined on the app. I would recommend creating the needed app in Azure AD with the permissions you need and then use that. Register-PnPAzureADApp can help you with setting up that app

Replies: 1 comment 1 reply

Comment options

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

Answer selected by krunal039
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