Jump to content

Featured Replies

Posted

Hi All,

I'm following the guidance from the following article to create a profile to update KSP application settings as custom settings:
https://blogs.vmware.com/euc/2020/02/deploying-knox-service-plugin-ksp.html

What isn't clear is what the syntax in custom settings xml should be when the restrictionType is "multi-select."  The xml from the restrictions looks like:
        <restriction
            android:description="@string/profile_permission_configuration_description"
            android:title="@string/profile_permission_configuration_title"
            android:key="profilePermissionConfiguration"
            android:restrictionType="bundle">
            <restriction
                android:description="@string/profile_special_access_permission_description"
                android:entries="@array/profile_special_permission_entries"
                android:title="@string/profile_special_access_permission_title"
                android:key="profileSpecialAccessPermission"
                android:defaultValue=""
                android:entryValues="@array/profile_special_permission_value"
                android:restrictionType="multi-select"/>
            <restriction
                android:description="@string/profile_special_access_component_description"
                android:title="@string/profile_special_access_component_title"
                android:key="profileSpecialAccessComponentName"
                android:defaultValue=""
                android:restrictionType="string"/>
        </restriction>
    </restriction>

The resulting profile (partial) processed by KSP should look something like:
"applicationPolicy": {
      "mAppUsbDeviceAccessConfigMap": {},
      "mAutoLaunchApp": null,
      "mBatteryOptWhitelist": null,
      "mBlacklistPackageToInstall": null,
      "mBlacklistSignatureToInstall": null,
      "mClearCacheBlocklist": null,
      "mClearDataBlocklist": null,
      "mDisableApp": null,
      "mDisableHeatManagement": false,
      "mDoAppUpdate": {
        "mApps": null,
        "mType": "NONE"
      },
      "mEnableAppUsbDeviceAccess": false,
      "mForceStopBlacklist": null,
      "mInstallApp": null,
      "mIsEnabled": true,
      "mIsSpecialPermissionEnabled": true,
      "mNotificationsBlocklist": null,
      "mNotificationsWhitelist": null,
      "mSpecialPermissionList": [
        {
          "opsList": [
            "92"
          ],
          "packageName": "com.RestaurantDataConceptsInc.POSiterm"
        }
      ],
      "mWhitelistPackageToInstall": null,
      "mWhitelistSignatureToInstall": null,
      "mWidgetBlacklist": null,
      "mWidgetWhitelist": null
    },
    

I can't figure out what the xml syntax would be for the array, "mSpecialPermissionList" in the above.  Any thoughts?

 

  • Views 433
  • Created
  • Last Reply

Create an account or sign in to comment