PS > Update-MgGroup -GroupId $groupID -BodyParameter $Properties -debug
DÉBOGUER : [CmdletBeginProcessing]: - Update-MgGroup begin processing with parameterSet 'Update'.
DÉBOGUER : [Authentication]: - AuthType: 'AppOnly', TokenCredentialType: 'ClientCertificate', ContextScope: 'Process', AppName: 'CeA - Microsoft Graph Systèmes-Collaboratifs'.
DÉBOGUER : [Authentication]: - Scopes: [TeamSettings.ReadWrite.All, TeamMember.Read.All, Place.Read.All, Teamwork.Migrate.All, OnlineMeetings.Read.All, UserAuthenticationMethod.Read.All, OnlineMeetingArtifact.Read.All,
ChannelSettings.Read.All, OnlineMeetingRecording.Read.All, Calendars.Read, Mail.ReadBasic.All, Group.Read.All, Directory.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All, Team.Create, Group.ReadWrite.All, Directory.Read.All, User.Read.All,
ChannelMember.Read.All, GroupMember.Read.All, Files.Read.All, LicenseAssignment.ReadWrite.All, AuditLog.Read.All, Reports.Read.All, TeamworkDevice.Read.All].
DÉBOGUER : ============================ HTTP REQUEST ============================
HTTP Method:
PATCH
Absolute Uri:
https://graph.microsoft.com/v1.0/groups/de19ce7e-3894-4af2-bfd0-1b7374afb0a1
Headers:
FeatureFlag : 00000003
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.19045; fr-FR),PowerShell/2024.4.0
SdkVersion : graph-powershell/2.26.1
client-request-id : 1862cde5-4c7d-438f-8f4b-0ee214a77988
Body:
Skipped: Content body was disposed before the logger could access it.
DÉBOGUER : ============================ HTTP RESPONSE ============================
Status Code:
BadRequest
Headers:
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : e5eedc11-ffae-4670-b0c7-776296981336
client-request-id : 1862cde5-4c7d-438f-8f4b-0ee214a77988
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"France Central","Slice":"E","Ring":"5","ScaleUnit":"003","RoleInstance":"PA1PEPF00102A3B"}}
x-ms-resource-unit : 1
Cache-Control : no-cache
Date : Wed, 19 Mar 2025 10:20:46 GMT
Body:
{
"error": {
"code": "Request_BadRequest",
"message": "Invalid property 'extension_appId_extensionName'.",
"innerError": {
"date": "2025-03-19T10:20:47",
"request-id": "e5eedc11-ffae-4670-b0c7-776296981336",
"client-request-id": "1862cde5-4c7d-438f-8f4b-0ee214a77988"
}
}
}
Invalid property 'extension_appId_extensionName'.
Status: 400 (BadRequest)
ErrorCode: Request_BadRequest
Date: 2025-03-19T10:20:47
Headers:
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : e5eedc11-ffae-4670-b0c7-776296981336
client-request-id : 1862cde5-4c7d-438f-8f4b-0ee214a77988
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"France Central","Slice":"E","Ring":"5","ScaleUnit":"003","RoleInstance":"PA1PEPF00102A3B"}}
x-ms-resource-unit : 1
Cache-Control : no-cache
Date : Wed, 19 Mar 2025 10:20:46 GMT
Update-MgGroup : Invalid property 'extension_appId_extensionName'.
Status: 400 (BadRequest)
ErrorCode: Request_BadRequest
Date: 2025-03-19T10:20:47
Headers:
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : e5eedc11-ffae-4670-b0c7-776296981336
client-request-id : 1862cde5-4c7d-438f-8f4b-0ee214a77988
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"France Central","Slice":"E","Ring":"5","ScaleUnit":"003","RoleInstance":"PA1PEPF00102A3B"}}
x-ms-resource-unit : 1
Cache-Control : no-cache
Date : Wed, 19 Mar 2025 10:20:46 GMT
Au caractère Ligne:1 : 1
+ Update-MgGroup -GroupId $groupID -BodyParameter $Properties -debug
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : ({ GroupId = de1...oftGraphGroup }:<>f__AnonymousType0`3) [Update-MgGroup_Update], Exception
+ FullyQualifiedErrorId : Request_BadRequest,Microsoft.Graph.PowerShell.Cmdlets.UpdateMgGroup_Update
DÉBOGUER : [CmdletEndProcessing]: - Update-MgGroup end processing.
Describe the bug
We have defined some custom Directory Extension on Group resource types.
Let's call its fullname "extension_appId_extensionName". Its type is multi-valued string.
When I try to set a value for this extension on a group, I get an error in v2.26.1 but it works fine in 2.25.0.
EDIT : please ignore following examples in this first message. I wanted to make them simpler and actually removed the part that is not working. My second message below show the examples that cause the problem, it seems related to the Json format.
Expected behavior
With "extension_appId_extensionName" being the full name of the custom Directory extension.
How to reproduce
SDK Version
2.26.1
Latest version known to work for scenario above?
2.25.0
Known Workarounds
Use version 2.25.0 of Microsoft.Graph.Groups
Debug output
Click to expand log
Configuration
Powershell integrated terminal in VS Code
Other information
No response