-
Notifications
You must be signed in to change notification settings - Fork 211
Description
Describe the bug
Get-MgUserDefaultDrive still not working, please refer to #2338 for details. Get-MgUserDefaultDrive -UserId XXXXXXXXX returns access denied when neccesary scopes are in place.
Expected behavior
Get-MgUserDefaultDrive still not working, please refer to #2338 for details.
How to reproduce
Get-MgUserDefaultDrive -UserId XXXXXXXXX returns access denied when neccesary permissions are in place.
SDK Version
2.26.0
Latest version known to work for scenario above?
No response
Known Workarounds
N/A
Debug output
DEBUG: [CmdletBeginProcessing]: - Get-MgUserDefaultDrive begin processing with parameterSet 'Get'.
DEBUG: [Authentication]: - AuthType: 'Delegated', TokenCredentialType: 'InteractiveBrowser', ContextScope: 'CurrentUser', AppName: 'Microsoft Graph Command Line Tools'.
DEBUG: [Authentication]: - Scopes: [DeviceManagementConfiguration.Read.All, Directory.Read.All, Directory.ReadWrite.All, Files.Read.All, Group.Read.All, Mail.Read, openid, profile, Reports.Read.All, Sites.Read.All, Team.ReadBasic.All, User.Read, User.Read.All, email, Sites.ReadWrite.All].
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://graph.microsoft.com/v1.0/users/staffXXXXXXXXXXX.com/drive
Headers:
FeatureFlag : 00000003
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.22631; en-US),PowerShell/7.4.4
SdkVersion : graph-powershell/2.26.0
client-request-id : 061dd456-4084-4270-9d92-da93956779ab
Accept-Encoding : gzip,deflate,br
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
Forbidden
Headers:
Cache-Control : no-store, no-cache
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : bff41ce0-adc0-43f1-9af2-13b28a809d9a
client-request-id : 061dd456-4084-4270-9d92-da93956779ab
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"South Central US","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SA2PEPF00002DF4"}}
Date : Tue, 25 Feb 2025 15:29:48 GMT
Body:
{
"error": {
"code": "accessDenied",
"message": "Access denied",
"innerError": {
"date": "2025-02-25T15:29:48",
"request-id": "bff41ce0-adc0-43f1-9af2-13b28a809d9a",
"client-request-id": "061dd456-4084-4270-9d92-da93956779ab"
}
}
}
Configuration
x64, Windows 11.
Other information
No response