Forum Discussion
Thao_Dao_Phuong
Sep 23, 2024Brass Contributor
Run PnP error
Hi everyone
Anyone experienced with PnP commands? I’ve been using PnP to delete data from the SharePoint Online (SPO) recycle bin. The command was working fine until about a month ago, but now it's no longer functioning. After running line 2, I received an error "
AADSTS700016: Application with identifier '32545457f-bcre-4ytc-8987b-fdb8787748e' was not found in the directory 'ABC'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant"
orginal command:
Original command:
Install-Module PnP.PowerShell -RequiredVersion 1.12 -Force -Allowclobber
Connect-PnPOnline -Url Admin-Sharepoint URL -Interactive
Connect-PnPOnline -Url Sharepointsite-URL-Interactive
Get-PnPRecycleBinItem -RowLimit 10000 | Where-Object{$_.DeletedByEmail -eq "Emailaddress"}
Get-PnPRecycleBinItem -RowLimit 10000 | Where-Object{$_.DeletedByEmail -eq "Emailaddress"} | Clear-PnPrecycleBinItem -Force
Please share and help. Thank you.
Hello Thao_Dao_Phuong
check this article: https://office365itpros.com/2024/08/29/pnp-powershell-changes-app/
Best, Dave
3 Replies
Sort By
Hello Thao_Dao_Phuong
check this article: https://office365itpros.com/2024/08/29/pnp-powershell-changes-app/
Best, Dave
- Thao_Dao_PhuongBrass ContributorHi Dave, thanks for your link it's useful for me.I fix my issue. thank you so much
- Thao_Dao_PhuongBrass Contributor
DaveMehr365 Thank for your information Dav. I am following your instructions, but I encountered this error : AADSTS700016
Please advise.
Thanks you