Super admin
Suitable Enviroment | SaaS |
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