Jump to content

Understanding "restrictionType" use for custom settings


Mark Young

Recommended Posts

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?

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...