<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
ナビゲーションへスキップメインコンテンツへスキップ
0D54z00008LUvW5CALOkta Classic EngineAPI Access ManagementAnswered2024-05-10T21:06:10.000Z2022-11-11T14:28:42.000Z2022-11-11T17:49:36.000Z

07be6 (07be6) さんが質問をしました。

User Search with Case sensitivity and starts with

Hello,

 

I am trying to use OKTA api specially for users & users groups using Postman collection provided from OKTA developers site and following documentation - https://developer.okta.com/docs/reference/api/users/*list-users-with-search

 

as per document it says "search parameter are case sensitive, whereas operators (eq, sw, etc.) and string values are case insensitive." - however when I trying with case insesitive value I am getting no results for "eq". also having issue with "sw" as it is completely not working and even for simple query and error is like: /api/v1/users?filter=profile.firstName sw "Avinash"

 

Error:

 "errorCode": "E0000031",

    "errorSummary": "Invalid search criteria.",

 

Please suggest how can I get this both scenarios working?

 

Thanks,

Avinash


  • User16594883467582706479 (Customer Support Online Experience)

    Hi, @07be6 (07be6)​ 

     

    Thank you for posting on our Community page!

     

    In the documentation you already checked and https://developer.okta.com/docs/reference/api/users/#list-users-with-a-filter, there are the following mentions:

    • Supports only the equal eq operator from the standard Okta API filtering semantics, except in the case of the lastUpdated property. This property can also use the inequality operators (gt, ge, lt, and le).
    • Supports only the logical operators and and or.
    • Is case-sensitive for attribute names and query values, while attribute operators are case-insensitive.

     

    sw is not supported in list search. eq should work; If there is no result, it does not find any match for that first name search value in your API call. If filtering by emaillastName, or firstName, it may be easier to use q instead of filter.

     

    Hope this helps!

     

    Thank you for reaching out to our Community and have a great day!

     

    _____________________________________________________________________________

    Join us in the Oktane discussion group to connect with attendees or just stay connected to the event.

    _____________________________________________________________________________

    If my answer helped, remember to select it as best to increase its visibility for other members of the Okta Community who might have the same questions as you. 

    _____________________________________________________________________________

     

    投稿を展開
この質問は閉じられました。
読み込み中
User Search with Case sensitivity and starts with