<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000AHZMnOCQXOkta Classic EngineAPI Access ManagementAnswered2024-11-29T17:05:46.000Z2024-11-26T19:20:41.000Z2024-11-29T17:05:46.000Z

ZhenZ.41305 (Customer) asked a question.

Search user by filtering "profile.login=email" where the email contains plus sign

Hello,

I am using Okta User API to filter a user by the profile.login attribute. I am trying to retrieve a user account where the account's login email contains a plus sign.

This call would find no user: /api/v1/users/?search=profile.login eq "user+1@domain.com"

This call can find user successfully: /api/v1/users/?search=profile.login eq "user@domain.com"

 

I have verified that both users are present in my organization with the correct login email; all other headers and call format are identical between two calls; my token has sufficient rights. Only difference is the email string.

 

I am aware that I can just directly retrieve a user by simply passing in the email in the URL as {id} , rather than pass it in as a parameter in search, as listed in https://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/*tag/User/operation/getUser. In fact I can retrieve both users in this manner without issues.

However I have other search parameters as well. I am aware I can retrieve the user first and filter on my end, but I am wondering if this can be accomplished in a single Okta API call.

 

Thank you for the help in advance!


This question is closed.
Loading
Search user by filtering "profile.login=email" where the email contains plus sign