Skip to content

$fn.listUsersByEmail(email,option)

Performs forward match search by Email to retrieve users present in the user manager. "asynchronous"

Argument

NameTypeDescription
emailstringSearch string
optionobjectSpecify whether to include invalid users

option details

NameTypeDescription
disabledbooleantrue: Include disabled users
false: Do not include invalid users
Default is false

Return value

TypeDescription
Promise<User[]>List of users matching the criteria
ObjectPropertyTypeDescription
UseruserIdstringUser ID (GUID)
emailstringEmail
namestringUser Name
custom_01stringCustom Attribute 1
custom_02stringCustom Attribute 2
custom_03stringCustom Attribute 3
custom_04stringCustom Attribute 4
custom_05stringCustom Attribute 5
custom_06stringCustom Attribute 6
custom_07stringCustom Attribute 7
custom_08stringCustom Attribute 8
custom_09stringCustom Attribute 9
custom_10stringCustom Attribute 10
enabledbooleanEnable/Disable
createdstringCreation date and time
updatedstringUpdate date and time
statusstringUser Status

Sample

try {
const email = $ui.searchKey.value;
// Display search results in table with table columns "userId", "email", and "name"
$ui.userList.value = await $fn.listUsersByEmail(email,{disabled:true});
} catch(err) {
console.log("Error", err);
}