and more in a single search tool across platforms. Read the announcement here. |
11/29/2023 12:52 PM - edited 11/29/2023 06:44 PM
I created a user in Sav to use for API calls into Sav. I set the PW using admin functions, assigned the Admin Sav role, and passwordExpired is set to false for user. However, when I make an authentication call from postman the call fails with a 401. It works if i use the local Sav admin creds. What might I be missing here?
11/29/2023 06:12 PM
login with user one time and try again.
11/29/2023 06:30 PM
We have already enabled SSO and they don't want to turn it off. Is there another way to login locally? I thought API authentication was the only way if SSO wasn't disabled.
11/29/2023 06:34 PM
If user is newly created then you need to restart once.
also make sure passwordexpired=0 (false) & localauthenabled=1 (true)
11/29/2023 06:37 PM
How can I set localauthenabled=1? I've tried via api call and it doesn't update. We don't have the customquery job option available in our version either. Do we need Sav support to set that attribute then?
As for restarts, do we also need to engage support for that?
11/29/2023 06:41 PM
You can do restart from UI.
update users set localauthenabled=1, passwordexpired=0 where username='apiuser' limit 1;
11/29/2023 06:45 PM
This is the command I've seen posted around the forums but have not figured out how to execute in our version (23.10 - I mistyped as 23.1 intially but have updated the post).
11/29/2023 06:39 PM
I also reviewed and followed the steps here: https://forums.saviynt.com/t5/saviynt-knowledge-base/how-to-troubleshoot-401-unauthorized-error-from...
I also read a couple posts regarding using that customquery job (which is not available in our version).
11/29/2023 06:42 PM
Please confirm your version is v23.1 as tagged in initial post
11/29/2023 06:43 PM
My mistake, I mistyped 23.10 as 23.1
11/29/2023 06:41 PM
I found the Application Restart services page and am restarting. Still curious as to how I can update that localauthenabled flag.
11/29/2023 06:46 PM
For anybody else struggling to set LocalAuthEnabled for a user on v23.7 or later - here's the "easy" solution our professional services team came up with:
11/29/2023 07:00 PM
Thanks, I will try this out and follow up with results. Thanks for your responses thus far.
11/30/2023 06:33 AM
I still need to try these steps but I was able to get localAuthEnabled set to true using a csv import but still got a 401 with trying to authenticate. Restarted the server as well. Do you expect the steps you provided to function differently from updating that attribute via the csv user upload?
11/30/2023 10:21 PM
Perform via user update form , show values from data analyzer for api user
12/03/2023 04:27 PM
Is this resolved ?