What API to use to create User and assign to specific application? Skip to main content
https://support.okta.com/help/answers?id=9062a000000bmkoqay&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:
Maulin ShahMaulin Shah 

What API to use to create User and assign to specific application?

What API should i use to create new user under okta and assign to specific configured application ?
Gabriel SrokaGabriel Sroka (Okta, Inc.)
Hi Maulin
To create a user, see:
http://developer.okta.com/docs/api/resources/users.html#create-user
To assign to an application directly (ie, not using a group), see:
http://developer.okta.com/docs/api/resources/apps.html#application-user-operations
If you want to assign a user to a group (if the group is assigned to the app), see:
http://developer.okta.com/docs/api/resources/groups.html#add-user-to-group
Maulin ShahMaulin Shah
Hi Gabriel,

How would i pull list of all users using application id?

 
Gabriel SrokaGabriel Sroka (Okta, Inc.)
HI Maulin
See:
http://developer.okta.com/docs/api/resources/apps.html#list-users-assigned-to-application
Maulin ShahMaulin Shah
Hi Gabriel,

Thanks for your quick response. 
I've gone through this API but when i supply application id, it has pull all profiels but did not pull the profile attribute values. 
any online API testing framework for developers?
Gabriel SrokaGabriel Sroka (Okta, Inc.)
>profile
app profile are attributes specific to the app (eg, when I assign a user to app X, I want their username to "this"). If you want the user's attributes, look in the user profile (not the app profile).

>API testing
we use Postman:
http://developer.okta.com/docs/api/getting_started/api_test_client.html
Is that what you're referring to?