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 ...
                    • Update Requester from Request Description

                      Use case: When a request is submitted on behalf of a user via email, the request description contains the requester's full name. Script to update the ticket requester accordingly. Tested on builds: 14306,14500. Steps to follow: Go to Admin > Request ...
                    • 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 ...