Skip to content

The getConfigurationPoliciesReportForDevice report request fails if orderBy is specified #1073

@eparfinenko

Description

@eparfinenko

Describe the bug

When calling POST https://graph.microsoft.com/beta/deviceManagement/reports/getConfigurationPoliciesReportForDevice, I receive an error if specify any orderBy (I tried several combinations: ["PolicyId"], ["IntuneDeviceId"], ["IntuneDeviceId", "PolicyId"]).
However, the same request works if I just remove "orderBy" parameter

Image

Expected behavior

Request should work with orderBy parameter

How to reproduce

Call POST https://graph.microsoft.com/beta/deviceManagement/reports/getConfigurationPoliciesReportForDevice with request body like:
{
"filter": "(IntuneDeviceId eq '') and ((PolicyBaseTypeName eq 'Microsoft.Management.Services.Api.DeviceConfiguration') or (PolicyBaseTypeName eq 'DeviceManagementConfigurationPolicy') or (PolicyBaseTypeName eq 'Microsoft.Management.Services.Api.DeviceManagementIntent') or (PolicyBaseTypeName eq 'DeviceConfigurationAdmxPolicy'))",
"orderBy": ["PolicyId"]
}

SDK Version

5.127.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions