- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 11:00 AM
I created a user using rest api posting to sys_user
I gave username and password
I want to automate the whole process including creating user. I am just testing right now with rest explorer.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 11:06 PM
I have tried this in my PDI and worked really well for me!
Could you please try this, I have used the same body which you mentioned
You are going in the right direction, can you make "sysparm_input_display_value" to true as mentioned in the screenshot.
After creation of user, I was able to login with the user_name and password!
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 11:22 AM
As your normal Admin login, check the sys_user record to see if "web services access only" is checked. If it is, the account can login via the API connection but will not be able to perform a local login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 10:33 PM
web services access only" is not checked and I am neither able to login from my app nor perform a local login.
When I try to post from rest API connection thr' my app using this user I get 401 error.
So may be password is not getting set. Can I see if the password is set thr' rest API in the sys_user record?
Thank you for your help..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 10:49 PM
Check the XML of the user record and see if the password field is properly showing an encrypted password or just the plain text you used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 11:06 PM
I have tried this in my PDI and worked really well for me!
Could you please try this, I have used the same body which you mentioned
You are going in the right direction, can you make "sysparm_input_display_value" to true as mentioned in the screenshot.
After creation of user, I was able to login with the user_name and password!
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.