I created a local user in SSO enabled Saviynt and set the password from Admin function.
I have set the localAuthEnabled as 1 and when I try to execute the authentication API (/ECM/api/login), I always get Invalid username or password and 401 errorcode error although I am passing the correct username and password.
I played around and have logged in using this user via SSO, as our SSO is configured to work on saviynt user's email attribute so i put my team mate's email address in this user in Saviynt and logged in and set the security questions.
Please help in solving this.
Note: I have never logged into Saviynt with this user's Saviynt password.
Disabling the SSO and then again setting the password, then login from UI and setting security questions solved the issue.
please find the detailed response as below :
For a user on v23.7 or later - here's the "easy" solution our professional services team came up with:
For lower instance :
you should be able to use the admin account that was provided at the time of setting up the instance.
If there is no access to any local accounts that can be used to make the API calls, please run the custom query job with the below query to update the flag.
(Note: CustomQuery is planned to be deprecated in the future versions)
update users set passwordexpired=0, localauthenabled=1 where username='SAVIyntXXXXX'
If you are still seeing a 401 error, then reset the password from UI and again execute the above query and try it
Hope this helps.