Giter Site home page Giter Site logo

Comments (2)

rquigley-aus avatar rquigley-aus commented on July 17, 2024

I've just discovered this issue in my environment.

I believe the {{key}} and {{value}} variables are at fault, but I'm unable to put the JSON schema into a format where it will correctly output:

    <key>AllowTenantList</key>
    <dict>
      <key>ID</key>
      <true/>
    </dict>

Instead of this:

    <key>AllowTenantList</key>
    <dict>
      <key>{{key}}</key>
      <string>ID</string>
      <key>{{value}}</key>
      <true/>
    </dict>

from profilemanifests.

relgit avatar relgit commented on July 17, 2024

The {{key}} and {{value}} structure represents a custom dictionary in PFM and as far as I know there's no way to mark these up with the Jamf JSON-schema manifest format.

As a workaround, you could change the JSON schema to already list the keys that you are going to use, practically converting the custom dictionary to a conventional one.

For example, in your case, instead of the existing {{key}} and {{value}} properties on the AllowTenantList schema, you will have one for ID , and the markup will look somewhat like this:

 "AllowTenantList": {
    "type": "object",
    "title": "Allow Tenant List",
    "description": "This setting prevents the users from uploading files to other organizations by specifying a list of allowed tenant IDs. If you enable this setting, the user gets an error if they attempt to add an account from an organization that isn't in the allowed tenants list.",
    "links": [
        {
            "rel": "More information",
            "href": "https://docs.microsoft.com/en-us/onedrive/deploy-and-configure-on-macos#allowtenantlist"
        }
    ],
    "properties": {
        "ID": {
            "type": "boolean",
            "title": "Allow ID"
        }
    },
    "property_order": 105
},

from profilemanifests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.