Okta PowerShell module

I’m attempting to use the Okta PowerShell module, and running into issues with the syntax when trying to use the -Search parameter.

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."     }  
     | ] }

Any suggestions on other formats to try would be appreciated.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.