PnP-PowerShell | SharePoint PnP PowerShell CmdLets | Command Line Interface library

 by   pnp C# Version: 3.28.2012.0 License: Non-SPDX

kandi X-RAY | PnP-PowerShell Summary

kandi X-RAY | PnP-PowerShell Summary

PnP-PowerShell is a C# library typically used in Utilities, Command Line Interface applications. PnP-PowerShell has no bugs, it has no vulnerabilities and it has medium support. However PnP-PowerShell has a Non-SPDX License. You can download it from GitHub.

This solution contains a library of PowerShell commands that allows you to perform complex provisioning and artifact management actions towards SharePoint. The commands use a combination of CSOM and REST behind the scenes, and can work against both SharePoint Online as SharePoint On-Premises.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PnP-PowerShell has a medium active ecosystem.
              It has 955 star(s) with 687 fork(s). There are 190 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 778 open issues and 722 have been closed. On average issues are closed in 67 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of PnP-PowerShell is 3.28.2012.0

            kandi-Quality Quality

              PnP-PowerShell has 0 bugs and 0 code smells.

            kandi-Security Security

              PnP-PowerShell has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              PnP-PowerShell code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              PnP-PowerShell has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              PnP-PowerShell releases are available to install and integrate.
              PnP-PowerShell saves you 69966 person hours of effort in developing the same functionality from scratch.
              It has 78500 lines of code, 0 functions and 1156 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PnP-PowerShell
            Get all kandi verified functions for this library.

            PnP-PowerShell Key Features

            No Key Features are available at this moment for PnP-PowerShell.

            PnP-PowerShell Examples and Code Snippets

            No Code Snippets are available at this moment for PnP-PowerShell.

            Community Discussions

            QUESTION

            PNP Powrshell Connect-PnpOnline with -AccessToken is not setting connection in Azure Functions
            Asked 2020-Oct-13 at 13:56

            I have an Azure Function wich is using PnpPowershell. I'd like to work with the users authorization. So I created a service which is gtting an OAuth token from Microsoft for the user. I then give the token to the Azure Function to use it to connect via Connect-PnpOnline.

            ...

            ANSWER

            Answered 2020-Oct-13 at 13:56

            Looking through the error and my understanding is that you will have to make use of the token obtained through the Sharepoint App(Sharepoint Add in) in the Connect-PNPOnline - This commandlet is specific to sharepoint.

            Graph is more of a wrapper of multiple technologies - internally speak to sharepoint. So they might not have context of Sharepoint in specific.

            So my suggestion would be make use of the token obtained from Sharepoint app (Sharepoint add in) - Get auth against the sharepoint URL. ( For instance : https://fabrikam.sharepoint.com/_layouts/15/OAuthAuthorize.aspx unlike in Azure App you will be making use of login.microsoftonline.com)

            For detailed steps of registering and using the Sharepoint App you could refer this article

            Source https://stackoverflow.com/questions/64335217

            QUESTION

            How to use the cmdlet Connect-PnPOnline with the options, ClientId, ClientSecret and AADDomain Options?
            Asked 2020-Aug-14 at 01:56

            I'm trying to use the command-let Connect-PnPOnline with the 3 options described in the question.

            My aim is to create a MS Team team on my tenant and I need to connect to the function application, I guess (which is going to run my PowerShell Script and the Graph API calls) to acheive this.

            Official Microsoft Documentation

            It's the 18th example of this page pointing on this other page.

            Unfortunetely the last link contains a lot of obsolete content.

            Errors

            • When I'am trying to execute this cmdlet inside a PowerShell terminal I'm not getting any error . I'm trying to get the connexion result into a variable but it contains nothing.

              $connection = Connect-PnPOnline -ClientId '2994aca5-7bf4-4179-89ff-c1ce18fa052f' -ClientSecret 'secret' -AADDomain 'mydomain.com'

            • When I'am trying to execute this inside an actual PowerShell Script I'am getting this big stack (I have intentionnaly removed the method calls stack for readibility reasons) I'm getting the SecretId from my Azure account in Home -> Ressource Group -> myFunctionApp -> Function section - App Key -> default. I'm getting the ClientId from my Azure account in Home -> Azure ADD Active Directory -> App registrations -> myregistrationApp -> Application ID.

            I do understand that the credentials are wrong but I dont know why.

            • And finally FYI, the configuration issue is preventing authentication error have a [not-working-for-me] solution described on this page.

            MSAL.Desktop.4.17.0.0.MsalServiceException: ErrorCode: invalid_client

            Microsoft.Identity.Client.MsalServiceException: A configuration issue is preventing authentication - check the error message from the server for details.You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details. Original exception: AADSTS7000215: Invalid client secret is provided. Trace ID: 31ee93b3-45b3-4058-9205-358e8e4da300 Correlation ID: 4b4c139d-e21b-4b0e-96b4-89f4068cefe3 Timestamp: 2020-08-13 16:54:54Z

            StatusCode: 401 ResponseBody: {"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret is provided.\r\nTrace ID: 31ee93b3-45b3-4058-9205-358e8e4da300\r\nCorrelation ID: 4b4c139d-e21b-4b0e-96b4-89f4068cefe3\r\nTimestamp: 2020-08-13 16:54:54Z","error_codes":[7000215],"timestamp":"2020-08-13 16:54:54Z","trace_id":"31ee93b3-45b3-4058-9205-358e8e4da300","correlation_id":"4b4c139d-e21b-4b0e-96b4-89f4068cefe3","error_uri":"https://login.microsoftonline.com/error?code=7000215"} Headers: Pragma: no-cache

            Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff client-request-id: 4b4c139d-e21b-4b0e-96b4-89f4068cefe3 x-ms-request-id: 31ee93b3-45b3-4058-9205-358e8e4da300 x-ms-ests-server: 2.1.10922.14 - DUB2 ProdSlices x-ms-clitelem: 1,7000215,0,, Cache-Control: no-store, no-cache P3P: CP="DSP CUR OTPi IND OTRi ONL FIN" Set-Cookie: fpc=Aulq_8y7IuJKshtSu9uJB4ocN4-WAQAAAF5nx9YOAAAA; expires=Sat, 12-Sep-2020 16:54:54 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=prod; path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly; SameSite=None Date: Thu, 13 Aug 2020 16:54:54 GMT

            Versions

            PowerShell: 5.1.18362.752

            SharePointPnPPowerShellOnline: 3.24.2008.0

            AzureAD: 2.0.2.106

            Azure: 5.1.2

            MicrosoftTeams: 1.1.4

            ...

            ANSWER

            Answered 2020-Aug-14 at 01:56

            You put the wrong client secret.

            In Azure Active Directory -> App registrations -> yourregistrationApp, to add a client secret:

            • From the app Overview page, select the Certificates & secrets section.
            • Select New client secret.
            • Add a description for your client secret.
            • Select a duration.
            • Select Add.

            After you save the configuration changes, the right-most column will contain the client secret value. Be sure to copy the value for use in your client application code as it's not accessible once you leave this page.

            Source https://stackoverflow.com/questions/63400748

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install PnP-PowerShell

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Command Line Interface Libraries

            ohmyzsh

            by ohmyzsh

            terminal

            by microsoft

            thefuck

            by nvbn

            fzf

            by junegunn

            hyper

            by vercel

            Try Top Libraries by pnp

            PnP

            by pnpC#

            sp-dev-fx-webparts

            by pnpTypeScript

            List-Formatting

            by pnpTypeScript

            cli-microsoft365

            by pnpTypeScript

            sp-starter-kit

            by pnpTypeScript