Do you get a "access is denied" message when you try to run this command? Get-MgUserMailFolder -UserId $User.Id -All
Do you get a "access is denied" message when you try to run this command?
Get-MgUserMailFolder -UserId $User.Id -All