$fn.getUsers(groupName?,option)
Retrieves the users present in the User Manager."asynchronous"
Arguments
Name | Type | Description |
---|---|---|
groupName? | string | Group name for user extraction conditions |
option | object | Specify whether to include invalid users |
Option details
Name | Type | Description |
---|---|---|
disabled | boolean | true: Include invalid 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 | 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 users = await $fn.getUsers('group1',{disabled:true});} catch (err) { console.log("Error", err)}