Skip to content

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

@valis-nz

Description

@valis-nz

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?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

I think this is the same bug experienced and not solved by a few users (but solved as not able to be replicated):
#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions