8000 PostRequestConfiguration doesn't allow setting of query parameters · Issue #2364 · microsoftgraph/msgraph-sdk-java · GitHub
[go: up one dir, main page]

Skip to content 8000
PostRequestConfiguration doesn't allow setting of query parameters #2364
@jakobjoachim

Description

@jakobjoachim

Describe the bug

When getting a list of users by IDs it is possible to filter and select further with the use of query paramters (same as the get request for all / one user). Unfornuately the Java SDK doesn't allow that. The PostRequestConfiguration only allows to modify the headers of the request.

Expected behavior

Same as the get request:

 List<DirectoryObject> page = graphServiceClient.users().getByIds().post(body, config -> {
    config.queryParameters.select = new String[] {"onPremisesSamAccountName", "userPrincipalName",
                "department"};
 }).getValue();

How to reproduce

see above

SDK Version

6.36.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

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

      0