<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
0D50Z00008G7UpBSAVOkta Classic EngineIntegrationsAnswered2021-05-26T13:14:23.000Z2016-11-01T18:27:55.000Z2019-03-06T19:30:58.000Z

Sam Johnson (Customer) asked a question.

Auto user import via csv and API
Is there any documentation on using the Okta API to auto import users from a CSV type file? Wanting to get our HR system (ADP) to export users to CSV on a daily basis and then import the users into Okta. Has this been done before? Is there any info on doing it? Any and all info would be great! Thanks!

  • Hi Sam

    I don't think there's anything in Okta's API, but you could write some code to call the API and have that code run on a schedule (eg, Linux cron or Windows Task Scheduler).
  • Sam Johnson (Customer)

    Hi Gabriel, thanks for the reply! After looking around I was thinking this same thing. Figured I could create a script that used "Create User" or "Update User" api methods.

     

    Do you know if you use "Create User" api method will it automatically detect if the user is already there, and just update them if there are new fields to update? Or will it just skip over the user since they are already in Okta?

    Thanks!
    Expand Post
  • Hi Sam

    I think "Create User" will return an error if you try create a user that's already there. If so, you'd have to use "Get User" or "Find User" to search for the user and decide whether to Create or Update.
  • MadhukarL.87406 (Customer)

    How do wee match the different attribute from feed( scripts)to Okta fields.

    Ex: Correspondence language attribute from the HR feed (import user's into Okta using scripts) to Locale attribute field in Okta ?

This question is closed.
Loading
Auto user import via csv and API