def save(nsc)
      # load includes admin users, but save will fail if they are included.
      admins = nsc.users.select { |u| u.is_admin }.map { |u| u.id }
      @users.reject! { |id| admins.member? id }
      params = @id ? { 'entityid' => @id, 'mode' => 'edit' } : { 'entityid' => false, 'mode' => false }
      uri    = AJAX.parameterize_uri('/data/assetGroup/saveAssetGroup', params)
      data   = JSON.parse(AJAX.post(nsc, uri, _to_entity_details, AJAX::CONTENT_TYPE::JSON))
      data['response'] == 'success.'
    end
def save(nsc)
      # load includes admin users, but save will fail if they are included.
      admins = nsc.users.select { |u| u.is_admin }.map { |u| u.id }
      @users.reject! { |id| admins.member? id }
      params = @id ? { 'entityid' => @id, 'mode' => 'edit' } : { 'entityid' => false, 'mode' => false }
      uri    = AJAX.parameterize_uri('/data/assetGroup/saveAssetGroup', params)
      data   = JSON.parse(AJAX.post(nsc, uri, _to_entity_details, AJAX::CONTENT_TYPE::JSON))
      data['response'] == 'success.'
    end
Save this dynamic asset group to the Nexpose console.
 Warning, saving this object does not set the id. It must be retrieved
 independently.

 @param [Connection] nsc Connection to a security console.
 @return [Boolean] Whether the group was successfully saved.