Skip to main content

Set Logon Hours

Description

This Activity sets logon hours with provided access type for the specified active directory user.

Properties

Input

  • Active Directory Instance - Specify the instance of the Active Directory.

  • Day of Week - Specify the day of the week of type DayOfWeek to set logon hours for the user.

  • End Hour - Specify the end hour of type HourOfDay to set logon hours for the user.

  • Search User By - Choose the search method to get the user from the dropdown.

    • The Username is the name created by the user.
    • The Distinguished name uniquely identifies the entry in the directory.
  • Search Value - Specify the distinguished name or Username of the user in the Active Directory.

  • Start Hour - Specify the Start hour of type HourOfDay to set logon hours for the user.

Misc

  • DisplayName – Add a display name to your Activity.
  • Private – By default, Activity will log the values of your properties inside your workflow. If private is selected, then it stops logging.

Optional

  • Access Type - Logon access for the specified active directory user.

    • Permit - Allowed to login
    • Deny - Denied to login
  • Continue On Error – It Specifies whether the automation should continue even when the Activity throws an error. If True, the Activity continues without throwing any exceptions. If False, the Activity throws an exception. The default value is False.

note

Catches no error if this Activity is present inside the Try-Catch block and the Value of this property is True.

Example

Download Example

Set Logon Hours