Skip to content

Latest commit

 

History

History
96 lines (67 loc) · 2.04 KB

permissions.md

File metadata and controls

96 lines (67 loc) · 2.04 KB

Permissions

Overview

The resources responsible for installing and managing permissions

Available Resources

  1. netField.permissions.devices(deviceIds, [callback])

  2. netField.permissions.containers(containerIds, [callback])

  3. netField.permissions.organisations(organisationIds, [callback])

  4. netField.permissions.users(userIds, [callback])

  5. netField.permissions.roles(roles, [callback])

  6. netField.permissions.tenants(tenantIds, [callback])

  7. netField.permissions.edgeos(edgeosIds, [callback])

  8. netField.permissions.groups(groupIds, [callback])

Resource Usage

organisationpermissions

Check organisations permissions
/**
 * @param {number[]} organisationId
 * @param {function} callback optional
*/
netField.permissions.organisations(organisationId, [callback])

userpermissions

Check users permissions
/**
 * @param {number[]} userIds
 * @param {function} callback optional
*/
netField.permissions.users(userIds, [callback])

rolepermissions

Check roles permissions
/**
 * @param {any} roles
 * @param {function} callback optional
*/
netField.permissions.roles(roles, [callback])

tenantspermissions

Check tenants permissions
/**
 * @param {number[]} tenantIds
 * @param {function} callback optional
*/
netField.permissions.tenants(tenantIds, [callback])

edgeospermissions

Check EdgeOS permissions

/**
 * @param {string[]} edgeosId
 * @param {function} callback optional
*/
netField.permissions.edgeos(edgeosIds, [callback])

groupspermissions

Check device/container group permissions

/**
 * @param {string[]} groupIds
 * @param {function} callback optional
*/
netField.permissions.groups(groupIds, [callback])