A JavaScript bookmarklet that allows you to seamlessly switch users during a PeopleSoft session.
You must know the node password for the environment that you want to switch users in.
The environment must have Switch User functionality enabled (PeopleTools > Utilities > Administration > PeopleTools Options). The Enable Switch User
value must be set to All
or Some
. If the value is set to Some
, then you need to check the Allow Switch User
box on the User Profile (PeopleTools > Security > User Profiles > User Profiles) for the users that you want to switch between.
Add the PS-SwitchToken bookmarklet to your browser’s bookmarks, login to the PeopleSoft web interface (PIA) and click the bookmarklet. Alternatively, you can invoke the JavaScript code in your browser’s dev console in a PeopleSoft session.
The page will refresh and you will be authenticated as the new user if the script was successful.
tip: If you do not want to input the node password each time, then you can hardcode the password on this line of the code.
Demo:
Invalid or unsupported token format
.Illegal identity switch has been detected by the System. Please re-login
after invoking the script, then it possible that the user you are logged in as does not have Switch User
enabled.PS_TOKEN cookie not detected in browser.
, then ensure the HTTPOnly
setting is disabled for the PS_TOKEN cookie under the Cookie Rules
tab of the Web Profile.This utility is merely a JavaScript port of Alexey Tyurin’s TokenChpoken python script. Credit and thanks to Alexey and the ERPScan team for their PS_TOKEN research efforts.
This utility makes use of the following JavaScript libraries: