$fn.listUsersByName(name,option)
Performs a forward match search by user name to retrieve users present in the user manager. "asynchronous"
Arguments
Name | Type | Description |
---|---|---|
name | String | Search string |
option | object | specify whether to include invalid users |
Option details
Name | Type | Description |
---|---|---|
disabled | boolean | true: Include disabled users false: Do not include invalid users Default is false |
Return value
Type | Description |
---|---|
Promise<User[]> | List of users matching the criteria |
Object | Property | Type | Description |
---|---|---|---|
User | userId | string | User ID (GUID) |
string | |||
name | string | User Name | |
custom_01 | string | Custom Attribute 1 | |
custom_02 | string | Custom Attribute 2 | |
custom_03 | string | Custom Attribute 3 | |
custom_04 | string | Custom Attribute 4 | |
custom_05 | string | Custom Attribute 5 | |
custom_06 | string | Custom Attribute 6 | |
custom_07 | string | Custom Attribute 7 | |
custom_08 | string | Custom Attribute 8 | |
custom_09 | string | Custom Attribute 9 | |
custom_10 | string | Custom Attribute 10 | |
enabled | boolean | Enable/Disable | |
created | string | Creation date and time | |
updated | string | Update date and time | |
status | string | User Status |
Sample
try { const name = $ui.searchKey.value; // Display search results in table with table columns "userId", "email", and "name" $ui.userList.value = await $fn.listUsersByName(name,{disabled:true});} catch(err) { console.log("Error", err);}