-
Notifications
You must be signed in to change notification settings - Fork 211
Closed
Labels
Description
Describe the bug
Line |
191 | Update-MgEducationUser -EducationUserId $EducationUser.Id -Student @{ …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Invalid type for property 'extension_fe2174665583431c953114ff7268b7b3_Education_StudentNumber' specified. Expected type '[extension_fe2174665583431c953114ff7268b7b3_Education_StudentNumber, 24041]'.
Status: 400 (BadRequest)
ErrorCode: Request_BadRequest
Date: 2025-04-18T10:43:19
Headers:
Cache-Control : no-cache
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : 489677b4-5ef2-40a4-a82c-937616b32573
client-request-id : 8d3ffd56-b332-4b26-9216-b3273d14cf66
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"008","RoleInstance":"AM2PEPF0002EAF6"}}
Date : Fri, 18 Apr 2025 10:43:19 GMT
Recommendation: See service error codes: https://learn.microsoft.com/graph/errors```
### Expected behavior
Update student attributes
### How to reproduce
Execute
`Update-MgEducationUser -EducationUserId ID -Student @{StudentNumber = "MASKED"} `
### SDK Version
2.26.1
### Latest version known to work for scenario above?
_No response_
### Known Workarounds
The cmdlet accept using that student object and returns a 200 success but didn't perform anything.
`Update-MgEducationUser -EducationUserId ID -Student @{extension_fe2174665583431c953114ff7268b7b3_Education_StudentNumber = "MASKED"} `
Valid workaround is to perform a direct api call
### Debug output
<details><summary>Click to expand log</summary>
</details>
### Configuration
- OS: Windows 11 24h2
- Architecture: x64
- PSVersionTable:
```Name Value
---- -----
PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0```
### Other information
_No response_