Update-MgUserExtension -UserId 'admin@contoso.onmicrosoft.com' -ExtensionId @{ 'extension_bcea2d2d57514195bf64f617ca2aa09e_jobGroup' = 'test' } -Debug
DEBUG: [CmdletBeginProcessing]: - Update-MgUserExtension begin processing with parameterSet 'UpdateExpanded'.
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A
DEBUG: [Authentication]: - AuthType: 'Delegated', TokenCredentialType: 'InteractiveBrowser', ContextScope:
'CurrentUser', AppName: 'Microsoft Graph Command Line Tools'.
DEBUG: [Authentication]: - Scopes: [Agreement.ReadWrite.All, AllSites.Read, Application.Read.All,
Application.ReadWrite.All, AppRoleAssignment.ReadWrite.All, AuditLog.Read.All, Channel.ReadBasic.All,
DelegatedPermissionGrant.Read.All, DelegatedPermissionGrant.ReadWrite.All, DeviceManagementManagedDevices.Read.All,
Directory.AccessAsUser.All, Directory.Read.All, Directory.ReadWrite.All, EntitlementManagement.ReadWrite.All,
Files.ReadWrite.All, Files.ReadWrite.AppFolder, GroupMember.Read.All, OnPremDirectorySynchronization.ReadWrite.All,
openid, Policy.Read.All, Policy.ReadWrite.Authorization, Policy.ReadWrite.CrossTenantAccess,
PrivilegedAccess.Read.AzureADGroup, PrivilegedAssignmentSchedule.Read.AzureADGroup, profile, Reports.Read.All,
Sites.Read.All, Team.ReadBasic.All, User.Read, User.Read.All, User.ReadBasic.All, User.ReadWrite.All,
UserAuthenticationMethod.Read, UserAuthenticationMethod.Read.All, UserAuthenticationMethod.ReadWrite.All, email].
Confirm
Are you sure you want to perform this action?
Performing the operation "Update-MgUserExtension_UpdateExpanded" on target "Call remote 'PATCH
/users/{user-id}/extensions/{extension-id}' operation".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PATCH
Absolute Uri:
https://graph.microsoft.com/v1.0/users/admin@contoso.onmicrosoft.com/extensions/System.Collections.Hashtable
Headers:
FeatureFlag : 00000003
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.26200;
pt-PT),PowerShell/5.1.26100.7462
SdkVersion : graph-powershell/2.28.0
client-request-id : da2d544c-3dac-49fc-9e15-86ebda7e0e24
Body:
{}
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
BadRequest
Headers:
Transfer-Encoding : chunked
Connection : keep-alive
Strict-Transport-Security : max-age=31536000
request-id : e8e301bb-db53-47de-9d39-6f9b62b0861f
client-request-id : da2d544c-3dac-49fc-9e15-86ebda7e0e24
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Switzerland
North","Slice":"E","Ring":"3","ScaleUnit":"000","RoleInstance":"ZR1PEPF00000663"}}
X-Cache : CONFIG_NOCACHE
Cache-Control : private
Date : Mon, 02 Feb 2026 10:46:47 GMT
Body:
{
"error": {
"code": "RequestBroker--ParseUri",
"message": "Resource not found for the segment 'extensions'."
}
}
Confirm
Resource not found for the segment 'extensions'.
Status: 400 (BadRequest)
ErrorCode: RequestBroker--ParseUri
Date:
Headers:
Transfer-Encoding : chunked
Connection : keep-alive
Strict-Transport-Security : max-age=31536000
request-id : e8e301bb-db53-47de-9d39-6f9b62b0861f
client-request-id : da2d544c-3dac-49fc-9e15-86ebda7e0e24
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Switzerland
North","Slice":"E","Ring":"3","ScaleUnit":"000","RoleInstance":"ZR1PEPF00000663"}}
X-Cache : CONFIG_NOCACHE
Cache-Control : private
Date : Mon, 02 Feb 2026 10:46:47 GMT
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A
Update-MgUserExtension : Resource not found for the segment 'extensions'.
Status: 400 (BadRequest)
ErrorCode: RequestBroker--ParseUri
Date:
Headers:
Transfer-Encoding : chunked
Connection : keep-alive
Strict-Transport-Security : max-age=31536000
request-id : e8e301bb-db53-47de-9d39-6f9b62b0861f
client-request-id : da2d544c-3dac-49fc-9e15-86ebda7e0e24
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Switzerland
North","Slice":"E","Ring":"3","ScaleUnit":"000","RoleInstance":"ZR1PEPF00000663"}}
X-Cache : CONFIG_NOCACHE
Cache-Control : private
Date : Mon, 02 Feb 2026 10:46:47 GMT
At line:1 char:1
+ Update-MgUserExtension -UserId 'admin@contoso.onmicrosoft.com' -Exten ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ({ UserId = admi...raphExtension }:<>f__AnonymousType84`4) [Update-MgU
serExtension_UpdateExpanded], Exception
+ FullyQualifiedErrorId : RequestBroker--ParseUri,Microsoft.Graph.PowerShell.Cmdlets.UpdateMgUserExtension_UpdateE
xpanded
DEBUG: [CmdletEndProcessing]: - Update-MgUserExtension end processing.
Describe the bug
I'm running the following command, as documented here: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/update-mguserextension?view=graph-powershell-1.0
Update-MgUserExtension -UserId 'admin@contoso.onmicrosoft.com' -ExtensionId @{ 'extension_bcea2d2d57514195bf64f617ca2aa09e_jobGroup' = 'test' }
But I'm getting this error:
Update-MgUserExtension : Resource not found for the segment 'extensions'.
Status: 400 (BadRequest)
ErrorCode: RequestBroker--ParseUri
Date:
Headers:
Transfer-Encoding : chunked
Connection : keep-alive
Strict-Transport-Security : max-age=31536000
request-id : e8e301bb-db53-47de-9d39-6f9b62b0861f
client-request-id : da2d544c-3dac-49fc-9e15-86ebda7e0e24
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Switzerland
North","Slice":"E","Ring":"3","ScaleUnit":"000","RoleInstance":"ZR1PEPF00000663"}}
X-Cache : CONFIG_NOCACHE
Cache-Control : private
Date : Mon, 02 Feb 2026 10:46:47 GMT
At line:1 char:1
Expected behavior
I was expecting the user extension property to be updated successfully.
How to reproduce
Update-MgUserExtension -UserId 'admin@contoso.onmicrosoft.com' -ExtensionId @{ 'extension_bcea2d2d57514195bf64f617ca2aa09e_jobGroup' = 'test' }
SDK Version
2.28.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
Configuration
No response
Other information
This cmdlet is documented in the following places:
https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/update-mguserextension?view=graph-powershell-1.0
https://learn.microsoft.com/en-us/powershell/microsoftgraph/azuread-msoline-cmdlet-map?view=graph-powershell-1.0&pivots=azure-ad-powershell