pnp / powershell

PnP PowerShell
https://pnp.github.io/powershell
MIT License
684 stars 349 forks source link

[BUG]Get-PnPUserOneDriveQuota (possibly Education tenant related?) #4543

Open valis-nz opened 1 week ago

valis-nz commented 1 week ago

Reporting an Issue or Missing Feature

Reporting an Issue with the "https://pnp.github.io/powershell/cmdlets/Get-PnPUserOneDriveQuota.html" command. Other commands mostly work.

Expected behavior

A user's onedrive quota.

Actual behavior

On two different machines, using an app registration with permissions and cert, the command just hangs. The verbose output with the nightly build is: VERBOSE: Already connect to the SharePoint Online Admin Center at 'https://ourtenant-admin.sharepoint.com/' VERBOSE: Making call to SharePoint Online using the Client Side Object Model (CSOM) VERBOSE: Evaluating application permissions in access token for audience SharePoint Online VERBOSE: Access token contains the following 2 application permission scopes for resource SharePoint Online: User.ReadWrite.All, Sites.FullControl.All VERBOSE: No required permissions have been defined on this cmdlet (this just hangs as long as it is left)

Steps to reproduce behavior

(note this is an education tenant which may be a factor as another already closed bug report mentioned the same.) Connect-PnPOnline -Url $SiteURL -ClientId $ClientID -Thumbprint $ThumbPrint -Tenant $Tenant Connects fine and can run other get-commands, but the following just hangs: get-pnpuseronedrivequota -account someaccount@ourdomain.co.nz

What is the version of the Cmdlet module you are running?

Both stable 2.12 and 2.99.37-nightly

Which operating system/environment are you running PnP PowerShell on?

I think this is the same bug experienced and not solved by a few users (but solved as not able to be replicated): https://github.com/pnp/powershell/issues/3539 The running theory is that for people experiencing the issue, they may be using an education tenant, which is somehow causing this command to fail.

sticky270 commented 1 week ago

Can confirm, still experiencing this issue as per comment on https://github.com/pnp/powershell/issues/3539 and are using an education tenant.

PierardY commented 1 week ago

Same problem with connect-pnponline with clientid/thumbprint on education tenant Get-PnPUserOneDriveQuota -Account "***" does not return