powershell
powershell copied to clipboard
[BUG] Get-PnPUser -WithRightsAssigned times out while working with some sites
Expected behavior
Get-PnPUser -WithRightsAssigned should return the list of users with rights assigned.
Actual behavior
Get-PnPUser -WithRightsAssigned times out.
Steps to reproduce behavior
- Connect to a SharePoint site
- Run
Get-PnPUser -WithRightsAssigned, which fails
Alternate path
- Connect to a SharePoint site
- Get current context and change timeout value
Get-PnPUser -WithRightsAssignedstills fails after running for about 1:53-1:55 minutes
What is the version of the Cmdlet module you are running?
This was tested with 1.12.0 (Windows PowerShell 5.1) as well as with 2.1.1 (PowerShell 7.3.4)
Which operating system/environment are you running PnP PowerShell on?
- [X] Windows
- [ ] Linux
- [ ] MacOS
- [ ] Azure Cloud Shell
- [ ] Azure Functions
- [ ] Other : please specify
@Nazul - Can you try on another site? I have no issue on my side (using 2.1.69 nightly)
I thought that I mentioned. It doesn't fail with all sites, but just with some. For those where it fails, it fails with both 1.12.0 and 2.1.1 versions.
In that case it might be more of an issue with the backend, and there are currently some issues with M365 (details in the tenant admin center). If it works even for some sites, not sure we can do anything unfortunately.
We are aware of the Microsoft services outage, however, the issue we described occurred before the outage according to our logs, and it is still there even though SharePoint is listed as fully operational today for our tenant.
The problem that I see related with Get-PnPUser is that we have no way to modify the timeout value, so we can wait longer for the operation to be completed.
Well, I'll leave @gautamdsheth or @KoenZomers look at it then.
I'm facing same issue. In my case I'm using PowerShell 7.3.7 and PnP.PowerShell 2.2.0 Do we have any news about possible solution?