Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filters not working for Invoke-OktaListGroups #60

Open
laura-rodriguez opened this issue Oct 29, 2024 · 0 comments
Open

Filters not working for Invoke-OktaListGroups #60

laura-rodriguez opened this issue Oct 29, 2024 · 0 comments

Comments

@laura-rodriguez
Copy link
Collaborator

laura-rodriguez commented Oct 29, 2024

According to the API docs, a filter query param can be used to filter results:

Filter group with a specific ID

filter=id eq "00g1emaKYZTWRYYRRTSK"

When trying to use the filter query param for the Invoke-OktaListGroups as below, the API fails with { "errorCode": "E0000031", "errorSummary": "Invalid search criteria.", "errorLink": "E0000031", "errorId": | "oae60Lk11OYTiWW7be_y247gw", "errorCauses": [] }.

$GroupId = 'foo'
Invoke-OktaListGroups -Filter "id eq `"$($GroupId)\`""

The command internally converts the final URI as https://mytestorg.com/api/v1/groups?filter=id+eq+%22foo%5c%22.

Internal Ref: OKTA-824517

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant