Adding Creds to new User created without Creds, via API Skip to main content
https://support.okta.com/help/answers?id=9062a000000dfopqa4&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:
martin sammmartin samm 

Adding Creds to new User created without Creds, via API

The app i'm working on creates a user without credentials and then when the user clicks on a link (via email) they specify a password and recovery question. All of this is done via the Java API.

The issue is that after setting the password, recovery question and setting the user to ACTIVE the user is still prompted for the recover answer and image after their first login (even though the user is ACTIVE).

The calls i'm making, via the Java API are (and i've tested this over REST as well and the result is the same):

client.setRecoveryQuestion(userId, question, answer);
client.setPassword(userId, userPassword);
client.activateUser(userId);

where 'client' is an instance of 'UserApiClient'.

What should i be doing so that the user not prompted at all?
AdrianAdrian (Okta, Inc.) 
Hi Martin!

Currently, we do not have a specific command to input the Security Image setup, and as a general rule, the users will be prompted to set their security image until they actually do that.

While this is expected behaviour, what I would recommend is to suggest this on the Okta Community by using the "Suggest a feature" option at the bottom right hand side of your Okta admin dashboard, or by logging in to your Okta Admin Panel -> Help and Training -> Community -> Ideas -> Submit an Idea.

Thank you,
Adrian