Community Component 25.2
Community Component Help

# UserLuaScript

A Lua script that contains functions to use for User management. If you set `UserLuaScript`, the Community component calls the following functions, if they exist:

- `password_complexity_check`. A function to check whether a particular choice of user password fits the complexity criteria that you define in the script. This script must accept a string (the proposed password), and return a Boolean value (true if the password is acceptable, false otherwise).

  If you set both `UserLuaScript` and PasswordStrength, the Community component runs the Lua script check first, and then checks that the result also meets the PasswordStrength complexity criteria.

  If you do not define the `password_complexity_check` function in your script, Community logs a warning message and continues to check by using PasswordStrength (if set).

You can use any of the standard Knowledge Discovery Lua functions in your script. See Lua Functions and Methods Reference.

Type: | String
Default: |
Required: | No
Configuration Section: | User
Example: | `UserLuaScript=C:\KnowledgeDiscovery\Scripts\UserScript.lua`
See Also: | PasswordStrength

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Community Component 25.2

Topic Title: UserLuaScript