Using API to set the security question for first time login user using okta widget Skip to main content
https://support.okta.com/help/answers?id=9062a000000dfkkqag&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:
Sriharsha ChekuriSriharsha Chekuri 

Using API to set the security question for first time login user using okta widget

We are using custom login page with okta-sign-in wiget to POST SAML response to an app. For onboarding the users we are importing into okta with a CSV which is triggerring an activation e-mail. 

We customized the activation e-mail to include link to custom domain instead of Okta page. I was able to set the password using the token in activation e-mail using  API. Now I am facing a challenge to set the security question & profile image for these users through API. If these attributes are not set users are being redirected to okta page to set them when signing in from the widget.

Can you please guide me to relevant API to set users security quesitons & profile Image through API for first time login.
Adrian MocanuAdrian Mocanu (Okta, Inc.)
Thank you for reaching out to Okta Support, my name is Adrian and I'll be handling your case.
I've added documentation from our developer page that is related to setting up the security question - https://developer.okta.com/docs/api/resources/users#create-user-with-recovery-question

As for the profile Image, Okta does not support profile images.
There is already a feature request created by other customers and you can vote it by going here - https://support.okta.com/help/ideas/viewIdea.apexp?id=087F0000000BGPMIA4
Sriharsha ChekuriSriharsha Chekuri
Adrian,

Thanks for the reply.

The user is already created in Okta from Admin interface. How can I add the security question via API ? Can I still use the create user API ?
Veneta AngelovaVeneta Angelova
I would also like to know how Ican set the security question from the admin console for users created from the admin interface. This is causing issues on our end.