show / hide menu

ValidateUserTemplate

This function returns a boolean value indicating whether the specified user or group exists in the given template(s).

Syntax:

ValidateUserTemplate(UserName, TemplateName)


Description:


The ValidateUserTemplate function checks if the provided user or group exists within the given template(s) and returns a boolean value accordingly.

Arguments:

UserName

  • Argument Type: String
  • Is Optional: False
  • Description: The name of the user or group to be validated.

TemplateName

  • Argument Type: String or List of Strings
  • Is Optional: False
  • Description: The name(s) of the template(s) to check for the existence of the user or group.

Example:

MessageBox(ValidateUserTemplate(Thas1,Template7))


In this example, the function checks if the user ” Thas1″ exists in the template ” Template7″ and displays the boolean result in messagebox.

Figure1: Rule

Figure2: Preview

Usage:

The ValidateUserTemplate function provides a straightforward way to verify whether a user or group is included in one or more templates. This can be useful for access control, permission management, or other scenarios where user-group associations need to be validated.