msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Get-MgBetaIdentityGovernanceAccessReviewDefinition serialization issue with parameter scope
Describe the bug
the parameter scope retrieve the value Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphAccessReviewScope instead of the scope details
Expected behavior
should retrieve an object as retrieved in the debug trace
"scope": {
"@odata.type": "#microsoft.graph.accessReviewQueryScope",
"query": "/beta/identityGovernance/entitlementManagement/accessPackageAssignments?$filter=(accessPackageId eq '<packageid>' and assignmentPolicyId eq '<policyid>' and catalogId eq '<catalogid>')",
"queryType": "MicrosoftGraph",
"queryRoot": null
},
How to reproduce
(Get-MgBetaIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId < id >).scope
SDK Version
2.24.0
Latest version known to work for scenario above?
No response
Known Workarounds
using invoke-mggraphrequest
Debug output
Click to expand log
``` DEBUG: ============================ HTTP REQUEST ============================HTTP Method: GET
Absolute Uri:
https://graph.microsoft.com/beta/identityGovernance/accessReviews/definitions/
Headers: FeatureFlag : 00000043 Cache-Control : no-store, no-cache User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.22631; en-GB),PowerShell/7.4.5 Accept-Encoding : gzip SdkVersion : graph-powershell-beta/2.24.0 client-request-id : 867b2885-b1ae-4cef-ba04-1b64bc600619
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code: OK
Headers: Vary : Accept-Encoding Strict-Transport-Security : max-age=31536000 request-id : af126007-4c9d-415e-9ace-9a597947ba89 client-request-id : 867b2885-b1ae-4cef-ba04-1b64bc600619 x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"UK South","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"LN2PEPF000114C9"}} Link : https://developer.microsoft-tst.com/en-us/graph/changes?$filterby=beta,PrivatePreview:customData&from=2021-06-01&to=2021-07-01;rel="deprecation";type="text/html",https://developer.microsoft-tst.com/en-us/graph/changes?$filterby=beta,PrivatePreview:customData&from=2021-06-01&to=2021-07-01;rel="deprecation";type="text/html",https://developer.microsoft-tst.com/en-us/graph/changes?$filterby=beta,PrivatePreview:customData&from=2021-06-01&to=2021-07-01;rel="deprecation";type="text/html" deprecation : Thu, 03 Jun 2021 23:59:59 GMT sunset : Sat, 03 Jun 2023 23:59:59 GMT odata-version : 4.0 Date : Tue, 08 Oct 2024 15:38:02 GMT
Body:
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#identityGovernance/accessReviews/definitions/$entity",
"id": "
DEBUG: [CmdletEndProcessing]: - Get-MgBetaIdentityGovernanceAccessReviewDefinition end processing.
</details>
### Configuration
_No response_
### Other information
_No response_