inviteAdmin(name, email, enable_sso = true, readonly = false, device_adopt = false, device_restart = false) {
    const payload = {name: name.trim(),
      email: email.trim(),
      for_sso: enable_sso,
      cmd: 'invite-admin',
      role: 'admin'
    };

    if (readonly === true) {
      payload.role = 'readonly';
    }

    const permissions = [];
    if (device_adopt === true) {
      permissions.push('API_DEVICE_ADOPT');
    }

    if (device_restart === true) {
      permissions.push('API_DEVICE_RESTART');
    }

    payload.permissions = permissions;

    return this._request('/api/s/<SITE>/cmd/sitemgr', payload);
  }
/**
   * Invite a new admin for access to the current site - invite_admin()
   *
   * returns true on success
   * required parameter <name>           = string, name to assign to the new admin user
   * required parameter <email>          = email address to assign to the new admin user
   * optional parameter <enable_sso>     = boolean, whether or not SSO is allowed for the new admin
   *                                       default value is true which enables the SSO capability
   * optional parameter <readonly>       = boolean, whether or not the new admin has readonly
   *                                       permissions, default value is false which gives the new admin
   *                                       Administrator permissions
   * optional parameter <device_adopt>   = boolean, whether or not the new admin has permissions to
   *                                       adopt devices, default value is false. With versions < 5.9.X this only applies
   *                                       when readonly is true.
   * optional parameter <device_restart> = boolean, whether or not the new admin has permissions to
   *                                       restart devices, default value is false. With versions < 5.9.X this only applies
   *                                       when readonly is true.
   *
   * NOTES:
   * - after issuing a valid request, an invite is sent to the email address provided
   * - issuing this command against an existing admin triggers a "re-invite"
   */


- after issuing a valid request, an invite is sent to the email address provided
- issuing this command against an existing admin triggers a "re-invite"
- after issuing a valid request an invite is sent to the email address provided - issuing this command against an existing admin triggers a " re - invite "
inviteAdmin(name, email, enable_sso = true, readonly = false, device_adopt = false, device_restart = false) {
    const payload = {name: name.trim(),
      email: email.trim(),
      for_sso: enable_sso,
      cmd: 'invite-admin',
      role: 'admin'
    };
    if (readonly === true) {
      payload.role = 'readonly';
    }
    const permissions = [];
    if (device_adopt === true) {
      permissions.push('API_DEVICE_ADOPT');
    }
    if (device_restart === true) {
      permissions.push('API_DEVICE_RESTART');
    }
    payload.permissions = permissions;
    return this._request('/api/s/<SITE>/cmd/sitemgr', payload);
  }
inviteAdmin ( name , email , enable_sso = true , readonly = false , device_adopt = false , device_restart = false ) { const payload = { name : name . trim ( ) , email : email . trim ( ) , for_sso : enable_sso , cmd : 'invite-admin' , role : 'admin' } ; if ( readonly === true ) { payload . role = 'readonly' ; } const permissions = [ ] ; if ( device_adopt === true ) { permissions . push ( 'API_DEVICE_ADOPT' ) ; } if ( device_restart === true ) { permissions . push ( 'API_DEVICE_RESTART' ) ; } payload . permissions = permissions ; return this . _request ( '/api/s/<SITE>/cmd/sitemgr' , payload ) ; }
Invite a new admin for access to the current site - invite_admin()
 returns true on success
 required parameter <name>           = string, name to assign to the new admin user
 required parameter <email>          = email address to assign to the new admin user
 optional parameter <enable_sso>     = boolean, whether or not SSO is allowed for the new admin
                                       default value is true which enables the SSO capability
 optional parameter <readonly>       = boolean, whether or not the new admin has readonly
                                       permissions, default value is false which gives the new admin
                                       Administrator permissions
 optional parameter <device_adopt>   = boolean, whether or not the new admin has permissions to
                                       adopt devices, default value is false.
Invite a new admin for access to the current site - invite_admin () returns true on success required parameter <name > = string name to assign to the new admin user required parameter <email > = email address to assign to the new admin user optional parameter <enable_sso > = boolean whether or not SSO is allowed for the new admin default value is true which enables the SSO capability optional parameter <readonly > = boolean whether or not the new admin has readonly permissions default value is false which gives the new admin Administrator permissions optional parameter <device_adopt > = boolean whether or not the new admin has permissions to adopt devices default value is false .