This sample script is to populate both technician and requester names in a request additional field
Populate all user name in a request additional field.
1. Create a new 'Single Line' additional field and add them in the request template to hold the user field information. Copy the "column name" of the additional field created.
2. Modify the attached script to update the additional field informations. Please follow the comments added in the script.
3. Go to Admin > Incident Templates > Select a particular template > Field and Form Rules > Rule execution - On Form Load > Rule execution - "On Create/Edit" > Event - "On Form Load" > Actions - Execute Script - Copy Paste the attached content and save the rule with a name.
4. All users of SDP will get listed in the new additional field created.
How to find the UDF name of a field in the Request Form:
Incident Template > Field And Form Rules
With ESM (11000) release, requesters can be given access for GET and GET ALL users api operations to achieve certain requirements. This will be disabled by default and needs to be enabled by executing the below query in the database,
update globalconfig set paramvalue='true' where parameter = 'AllowUserAPIInRequesterLogin';
Refer to this article for the instructions to connect to the database.