Replies: 1 comment 2 replies
-
Hi @tbithell , the site.selected permissions are currently only working for Microsoft Graph only (so no REST or CSOM queries) and they only work in app-only context, hence you can't use PnP Core SDK with just those permissions. If that's what you need you'll need to limit yourselves to what Graph offers and use that. To get a PnPContext from an existing CSOM ClientContext you can use this: https://pnp.github.io/pnpcore/using-the-sdk/basics-pnpframework.html#using-pnp-core-sdk-when-pnp-framework-was-already-configured. Might not yet be available in 1.1, but it's in our nightly and we plan to release 1.2 very soon. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've gone through the directions and have this working. Unfortunately, more will have to happen in order to be able to use it in this project I'm on.
Is there a way to get PnPContext with a SPO add-in?
I'm able to get ClientContext via the authprovider in Core Framework, but can't seem to sort out how to get PnP context with it.
From our organization's perspective, .All permissions are not happening. Site.Selected is real promising, but as best I can tell the SDK doesn't yet support it.
I really want to use the SDK, so any help getting past this will be greatly appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions