Skip to main content

Super admin

Suitable EnviromentSaaS
Private Deployment

Requirements​

ONES@ones-op/node-ability
v3.6.0+v0.1.9+

Overview​

Each plugin has a dedicated super admin in ONES who has access to all ONES data. When the plugin uses certain abilities, it needs to use an ONES user with higher privileges, and you can directly use the super admin without preconfiguring a specific user.

Usage​

Step 1: Installation dependency​

Enter the /backend directory of the plugin project, and execute the following command for dependent installation:

npm i @ones-op/node-ability

Step 2: Get super admin information​

const user = await Plugin.getPluginUser(teamUUID)

Example:

"data": {
"user_uuid": "PEFDXMK1",
"org_uuid": "",
"team_uuid": "3JjYLsNk",
"app_uuid": "",
"instance_uuid": "3fcca29f",
"name": "pluginTest",
"email": "3JjYLsNk_3fcca29f@ones.com"
}

Other​

For the definition of specific parameters, please refer to: @ones-op/node-ability