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

Using -Search with Invoke-ListOktaGroups not working as expected #48

Open
imchrsjms opened this issue Sep 20, 2024 · 1 comment
Open

Comments

@imchrsjms
Copy link

I am able to use this search query successfully against the API:
/api/v1/groups?search=profile.name+eq+%22IAM+Team%22

However, the same is not working from the PowerShell module:

Invoke-OktaListGroups -Search profile.name+eq+%22IAM+Team%22                                                                                                                              in pwsh at 12:39:46
Invoke-WebRequest: /Users/chrjames/.local/share/powershell/Modules/Okta.PowerShell/1.0.2/Private/OktaApiClient.ps1:171:32
Line |
 171 |  …               $RawResponse = Invoke-WebRequest -Uri $UriBuilder.Uri `
     |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     |  {   "errorCode": "E0000031",   "errorSummary": "Invalid search criteria.",   "errorLink": "E0000031",   "errorId": "oaeJ5tZqvB0SFuJ-AxZqTFoRQ",   "errorCauses": [     {       "errorSummary": "Invalid search syntax."     }  
     | ] }

Invoke-OktaListGroups -Search "profile.name+eq+%22IAM+Team%22"                                                                                                                            in pwsh at 12:40:54
Invoke-WebRequest: /Users/chrjames/.local/share/powershell/Modules/Okta.PowerShell/1.0.2/Private/OktaApiClient.ps1:171:32
Line |
 171 |  …               $RawResponse = Invoke-WebRequest -Uri $UriBuilder.Uri `
     |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     |  {   "errorCode": "E0000031",   "errorSummary": "Invalid search criteria.",   "errorLink": "E0000031",   "errorId": "oaesxE_QxDNQ2Ky6qp_EkNfQg",   "errorCauses": [     {       "errorSummary": "Invalid search syntax."     }  
     | ] }

@laura-rodriguez
Copy link
Collaborator

Thanks for reporting this issue, @imchrsjms!

I've filed an internal ticket for the team to review and prioritize.

Internal Ref: OKTA-813691

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

2 participants