ExclusiveUnlockAfterPSMSession unlocks/checks account in, but gives error PSMSR1258E REST call failed. reason: PASWS039E Account [xxx_x] was not found. (Codes: -1, -1)
Symptom
Having enabled the ExclusiveUnlockAfterPSMSession in a policy when PSM session is started account is checked out, and when it ends it also now checks it back in.
But an error pops up for the user; PSMSR1258E REST call failed. reason: PASWS039E Account [xxx_x] was not found. (Codes: -1, -1)
It seems that the unlock is successful.
#PSMConsole.log:
PSMSR500W [session_id] Maximum session duration value is lower than the satellite processes timeout value. Ignoring satellite processes timeout value
PSMSR126E [session_id] Failure occurred while handling session. PSMSR1258E REST call failed. reason: PASWS039E Account [xxx_x] was not found. (Codes: -1, -1)
Environment
11.6;11.7;12.0;12.1;12.2;12.4;12.3;12.5 Privileged Access Manager (PAM, self-hosted) PSM PSM Other technical issue
Cause
The account in the error xxx_x is the Logon Account in use, and if that is in a different safe, and the psmappusers group does not have access to it the error will show up.
The psm-auto-unlock feature needs permissions to all the linked accounts (including the logon account) as well of the primary account.
Resolution
Add PSMAppUsers group to the safe and make sure the PSMApp user is a member of this group.
Give the group List and Unlock permissions.