
KaleshaN.43894 (Customer) asked a question.
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.

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.