How to set the domain of the user on login in domain picker using gs.getUser().setDomainIDSummaryThis article explains how to set the domain to specific one once the user logs inReleaseAllInstructionsNavigate to the Script Action records (sysevent_script_action)Open the record with the name as 'Set Theme'.Do an insert and stay on this record and modify the name to 'Test Domain Picker' (or any)Make sure that the event name is session.establishedAdd script as below setDomainPicker(); function setDomainPicker(){ gs.getUser().setDomainID('sysid of the domain'); } and save the record 6. Now, once the logs in the domain will be set to the value set in the setDomainID Related LinksYou can modify the script as needed in the function logic to set the domain for the user by doing a glide record query on sys_user table. There is field on sysevent_script_action table called 'synchronous' that's false by default. In order for the script to work correctly, this field has to be true. So we did an insert and stay on the OOB script action named Set Theme which has synchronous set to true.