Questions tagged [office-dev-pnp]
Office 365 Developer Patterns and Practices
74 questions
1 vote
1 answer
255 views
Log into SharePoint online through C# and using Office Dev PnP Core
I have a console application in which I am logging into SharePoint using code below. try { var authManager = new OfficeDevPnP.Core.AuthenticationManager(); using (var clientContext = ...
0 votes
1 answer
36 views
'SharePointTheme' does not contain a definition for 'customtheme'
I am trying to apply custom theme to my site collection but getting below error while applying: Error CS0117 'SharePointTheme' does not contain a definition for 'customtheme' Below is my code line: ...
1 vote
2 answers
3k views
Unwanted permission requested by Azure AD Consent for PnP PowerShell
I am trying to register PnP PowerShell Enterprise app and currently app is requesting 27 different permissions . I would like minimize the number of permissions requested by PnP PowerShell . In my ...
3 votes
0 answers
507 views
How to authenticate with new PnP core beta
With the classic PnP you could authenticate with something like this: public static ClientContext GetAppContext(string siteUrl, string appId, string appSecret, string appName, OfficeDevPnP.Core....
0 votes
1 answer
3k views
Failed to execute MS Graph backend request GetGroupInternalApiRequest
In my project, there is a requirement to create Site Collection with Office 365 group, so I have used following method CreateUnifiedGroup of OfficeDevPnP.Core.Framework.Graph namespace. Here is the ...
0 votes
1 answer
76 views
Recommended Microsoft 365/SharePoint REST API/Graph API JS library - for custom solution not in SharePoint context
I'm after a reliable REST API JS library i can use to build a custom solution using SharePoint Online backend rest services. This app would be hosted outside the SharePoint context I know of this the ...
1 vote
1 answer
2k views
Powershell CSOM with PnP AuthenticationManager: flush credentials
I've been using an OfficeDevPnp.Core.AuthenticationManager for a long time, in order to support MFA for PowerShell scripts targeting SharePoint Online with CSOM. For my current task, DEV is on tenant-...
1 vote
2 answers
4k views
Log into SharePoint tenant through CSOM with MFA enabled
I need to log into a SharePoint tenant using an admin account that uses MFA. This is the code. var authManager = new OfficeDevPnP.Core.AuthenticationManager(); var context = authManager....
1 vote
0 answers
1k views
SharePoint PnP provisioning engine: applying provisioning template throws "Access denied" error
I am currently facing a strange behaviour with the SharePoint provisioning engine. I am targeting a SharePoint 2019 on-premise version. I am quite sure that this problem is related to authentication, ...
2 votes
0 answers
159 views
Using PnP provisioning template and updating ExchangeId and IndexId JSON properties for a News web part
I'm using the PnP extension ApplyProvisioningTemplate to apply an XML site template as part of our provisioning process, a C# API running in Azure. One of the ClientSideWebPart we use is News. I have ...
2 votes
1 answer
3k views
User field value not updating using PNP SPFX solution
I'm trying to insert a user field value using people picker in SPFX solution using PNP, but I'm getting the below error. I'm copying the code below which I'm using and the error too which I'm getting ...
1 vote
1 answer
606 views
Using SharePointPnPCoreOnline with Azure Function(v1)
I am creating my first Azure Function(V1) with SharePointPnPCoreOnline package and Visual Studio 2019/2017. When I created a function project without SharePointPnPCoreOnline its working without any ...
0 votes
1 answer
449 views
Using SharePointPnPCoreOnline with Azure Function
I am creating my first Azure Function(with .net core 3.0) with SharePointPnPCoreOnline package. When I created a function project without SharePointPnPCoreOnline its working without any error. But ...
0 votes
1 answer
2k views
Azure Logic App with SharePoint Connection
I am creating my first logic app which connects to SharePoint and adds entries into some sharepoint list. Whenever I create a SharePoint Connection it adds below resource to my logic app. { "type":...
0 votes
1 answer
477 views
pnp schema template issue - how to inlcude "new and existing guests" option in the schema
I am not finding the right XML schema to include it in my PNP provisioning template. How can I include settings called "New and existing guests" for external sharing while provisioning a site using ...