<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
0D54z00008YebavCABOkta Classic EngineAPI Access ManagementAnswered2022-12-20T00:06:04.000Z2022-12-16T22:55:26.000Z2022-12-20T00:06:04.000Z

KaleshaN.43894 (Customer) asked a question.

Okta users list API

Hi, 

We are building license management system for managing our clients license to access our products. 

when a new user created on platform we use okta users api to create new user in okta and save reference to okta user id, if user already existed in okta( this is possible internal org users part of AD) no operation performed in okta we simply store their okta user id. one of our api requirement is that we should see list of users in platform.

 if we use okta users list api, we will see all users who are in AD(not necessarly part of license management platform) + newly created users. how we can filter users who are only added to the platform? I tried creating custom attribute like api_user to user profile editor and use list_users api to filter by that custom attribute, this work perfectly fine for newly added users but adding this new attribute on existing users(AD users) does not work getting exception like 'Operation failed because user profile is master another system'

does okta currently supports users API which returns users based on given ids? if not any other suggestions how we can solve this use case ?

Thanks for your help in advance.


  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @KaleshaN.43894 (Customer)​,

     

    Thank you for posting on the Okta community page!

     

    I have done some tests on my end with the Get User and List Users API calls and it seems that for AD mastered users, the "provider": { "type": "" value from the response will be Active Directory while for Okta users it will be Okta, therefore you could use this value to filter the users.

     

    ------------------------------------------------------------------------------------------------------------------------------------------------

    Community members help others by clicking Upvote or Select as Best on responses. Try it today.

    Expand Post
    Selected as Best
  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @KaleshaN.43894 (Customer)​,

     

    Thank you for posting on the Okta community page!

     

    I have done some tests on my end with the Get User and List Users API calls and it seems that for AD mastered users, the "provider": { "type": "" value from the response will be Active Directory while for Okta users it will be Okta, therefore you could use this value to filter the users.

     

    ------------------------------------------------------------------------------------------------------------------------------------------------

    Community members help others by clicking Upvote or Select as Best on responses. Try it today.

    Expand Post
    Selected as Best
  • KaleshaN.43894 (Customer)

    Hi @flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)​ 

    Thanks for your quick response. It is possible the some of AD users are also in the platform.

    we have to list users who are added to the platform (includes external users + some of AD users).

    the challenge we currently facing how we can filter/load users who are added platform(we only persist user ids on our side) from okta?

    Expand Post
This question is closed.
Loading
Okta users list API