$fn.createGroup(param)
アプリケーションの認可グループを追加します。[非同期]
引数
| 名前 | 型 | 説明 |
|---|---|---|
| param | object | 登録するグループ情報 |
param詳細
| プロパティ | 型 | 説明 |
|---|---|---|
| groupName | string | グループ名 |
| description | string | 詳細 |
戻り値
| 型 | 説明 |
|---|---|
Promise<Group> | 登録したグループ情報 |
| オブジェクト | プロパティ | 型 | 説明 |
|---|---|---|---|
| Group | groupName | string | グループ名 |
| description | string | 説明 | |
| members | object array | グループに所属するアクティブユーザ配列 |
サンプル
const groupName = $ui.groupName.value;const description = $ui.description.value;try { await $fn.createGroup({ groupName: groupName, description: description });} catch (err) { console.log("Error", err);}