Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Lock down RITM Variables

DreDay3000
Tera Guru

Is there a way to lock down RITM variables for users that are not the requested for or Opened by user?

1 REPLY 1

Sid_Takali
Kilo Patron

Hi @DreDay3000 you can try below solution. (I have not tested it)

- Go to "Security Rules" > "Access Control" > "Create an Access Control Rule".

   - Apply the following conditions:

      - Operation: Write

      - Object Type: Requested Item [sc_req_item]

      - Conditions: `requested_for=javascript:gs.getUserID() OR opened_by=javascript:gs.getUserID()`

 

Regards,

Sid