To set the time restriction on the Juniper device, perform the following procedure:
- Go to Users > User Realms > Role Mapping > Create a Rule. Select Custom Expressions from the Rule based on drop-down menu and click Update:

- Click the Expressions button:

- Select New from the View drop-down menu, type a name for the expression in the Name field, look for loginTime in the Expressions Dictionary, click Insert Expression to add it to the Expression field, specify the required period of time for the expression, and click Add Expression:

- Move the rule from Available Expressions to Selected Expressions and click Save Changes.