$fn.createGroup(param)
Add an authorization group for the application. "asynchronous"
Arguments
| Name | Type | Description |
|---|---|---|
| param | object | Group information to be registered |
parameters details
| Property | Type | Description |
|---|---|---|
| groupName | string | Group Name |
| description | string | Details |
Return value
| Type | Description |
|---|---|
Promise<Group> | Registered Group Information |
| Object | Property | Type | Description |
|---|---|---|---|
| Group | groupName | string | Group Name |
| description | string | Description | |
| members | object array | Active user array belonging to group |
Sample
const groupName = $ui.groupName.value;const description = $ui.description.value;try { await $fn.createGroup({ groupName: groupName, description: description });} catch (err) { console.log("Error", err);}