Skip to content

[FEATURE] Can we have ConsistencyLevel added to Get-PnPEntraIdUser? #5008

Open
@AndersRask

Description

@AndersRask

Is your feature request related to a problem? Please describe.
When fetching users from Get-PnPEntraIdUser we only have basic OData filters available.
It would be nice to have the full advanced filters from OData v4 like we have in Graph

Describe the solution you'd like
Support for advanced queries including ConsistencyLevel = Eventual in headers will give us the option for advanced queries on selected indexed properties, such as
Get-PnPEntraIdUser -Filter "endsWith(userPrincipalName, 'onmicrosoft.com')" -ConsistencyLevel Eventual

Describe alternatives you've considered
Invoke-PnPGraphMethod have indirect support for this and of course Get-MgUser have full support

Additional context
https://devblogs.microsoft.com/microsoft365dev/microsoft-graph-advanced-queries-for-directory-objects-are-now-generally-available/
https://learn.microsoft.com/en-us/graph/aad-advanced-queries
https://learn.microsoft.com/en-us/graph/query-parameters
https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#_Toc31360955

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions