To set the logged in user as a requester and to disable the requester field selection during request creation.

To set the logged in user as a requester and to disable the requester field selection during request creation.

By configuring this rule in the template when any user raises a ticket with this template they will be set as the requester by default for the ticket.(Applicable for admin, Requesters and technicians)

1. Go to the template you want to restrict the requester>>Click Field and form rules>>On form load>>Create a rule as per the below snapshot.

Script: 
var x=$CS.getLoggedInUserName();
$CS.setValue("REQUESTER",x); 



2. To disable the requester field selection -->Create another rule in on form load>>Create a rule as per the below snapshot.



Output:



                  New to ADSelfService Plus?

                    • Related Articles

                    • How to set the requester field as logged in user

                      Go to Admin >> Field and Form Rules >> Create a rule with the below script var user = { name:$CS.getLoggedInUserLoginName(), id:$CS.getLoggedInUserId() }; $rf.setFieldValue('requester',user);
                    • How to populate requester details in request additional field

                      Requirement: Populate requester additional field information into request additional field. Usecase: Let us consider a scenario where certain employee details are imported from the Active Directory into User - Additional Fields. The business ...
                    • How to populate user names in a request additional field

                      This sample script is to populate both technician and requester names in a request additional field Use Case: Populate all user name in a request additional field. Execution Steps:  1.  Create a new 'Single Line' additional field and add them in the ...
                    • ADMP Integration - How to automate AD user creation

                      This post described the use of a python script to automate AD user creation from request. This script can be configured under Request custom triggers and you will find more information about this here. Integrating ServiceDesk Plus with ADManager Plus ...
                    • Set SLA automatically for a service request using FAFR

                      Note: The below FAFR script will work only on 10600 MSP and above Requirement: Set SLA automatically for a service request depending on the Priority. Usecase: Let us consider a scenario where SLA has to be set depending on the requester's associated ...