You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\Users\iperry> Connect-MgGraph -Scopes "User.Read.All","Mail.Read","MailboxSettings.Read"
Welcome To Microsoft Graph!
PS C:\Users\iperry> $Members = Get-MgUser -All | Where-Object {$_.UserPrincipalName -NotLike "*#*"}
PS C:\Users\iperry> Get-MgUserMailFolder -UserId $Members[4].Id
Get-MgUserMailFolder_List: The specified object was not found in the store., The process failed to get the correct properties.
I've attempted Connect-MgGraph -ForceRefresh, as well as Disconnect-MgGraph; Connect-MgGraph. I've also verified that the user is a legitimate user. Suggestions? AB#8987
The text was updated successfully, but these errors were encountered:
This is a service issue. Could you try the following?
From the docs, you can only get the mailbox folder collection of the signed-in user when in delegated mode. To get the mailbox folder of another user, you will need to authenticate in app-only mode via Connect-MgGraph -ClientId $env:ClientId -TenantId $TenantId -CertificateThumbprint $CertThumbprint.
Was the user account created recently? If so, you may need to wait for 15 minutes before making the call.
Running Powershell 7.1.3, see example below.
I've attempted
Connect-MgGraph -ForceRefresh
, as well asDisconnect-MgGraph; Connect-MgGraph
. I've also verified that the user is a legitimate user. Suggestions?AB#8987
The text was updated successfully, but these errors were encountered: