Auto user import via csv and API Skip to main content
https://support.okta.com/help/answers?id=9062a000000bm7oqaa&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Sam JohnsonSam Johnson 

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!
Gabriel SrokaGabriel Sroka (Okta, Inc.)
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 JohnsonSam Johnson
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!
Gabriel SrokaGabriel Sroka (Okta, Inc.)
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.
Sam JohnsonSam Johnson
Okay, that makes sense. Thanks for the info!