Comments (8)
Good call. Should be able to normalize that
from profilemanifestsmirror.
Another great example is com.apple.loginwindow
and the keys SleepDisabled
,RestartDisabled
,Shutdown Disabled
.
The problem is in the descriptions, which state "Show the X button", yet a true
value for these keys will "Hide the X Button" in practice. I believe other boolean keys in that schema are affected as well.
Due to a bug in Sonoma with the HideAdminUsers
key, and the way that Jamf handles this payload in their built-in GUI for configuration profiles, this particular schema might be seeing some additional use right now.
from profilemanifestsmirror.
How would this be implemented in this repo, given that Jamf doesn't have any "inverted" concept? If pfm_value_inverted
is true we would just reverse the boolean value?
from profilemanifestsmirror.
@homebysix I think that would be the most sensible solution. Since we are only dealing with booleans, we know all the possible values (2) so inverting the value during conversion should provide the intended result.
from profilemanifestsmirror.
I took a shot at implementing this. Does this diff look right?
from profilemanifestsmirror.
Is there a reason for the double-parenthesis on all()?
from profilemanifestsmirror.
The double-parens provides a single tuple to all()
. Without it, you get this:
TypeError: all() takes exactly one argument (3 given)
from profilemanifestsmirror.
I don't think flipping the default values is the right thing to do here. Looking at a couple examples, the defaults as documented by Apple were correct before the change.
For example: com.apple.AssetCache → DenyTetheredCaching. The default value is false
: https://github.com/apple/device-management/blob/release/mdm/profiles/com.apple.AssetCache.managed.yaml#L96
But this change would make it true
incorrectly:
I don't see a path forward for supporting this feature now, but we can revisit if Jamf ever adds support for inverted values.
from profilemanifestsmirror.
Related Issues (16)
- No .gitignore file HOT 1
- New value HOT 1
- Need some clarification on SlackDefaultSignInWorkspace HOT 1
- Fix Nudge Json HOT 1
- Allow Tenant Key Issue HOT 2
- com.microsoft.Edge says it has errors when I upload it to jamf
- Support for New Teams in com.microsoft.autoupdate2.json HOT 1
- Build runner failures HOT 2
- Shohag Hossain HOT 3
- menu.nomad.login.ad.json JSON Manifest Displays Errors in Jamf Pro HOT 2
- menu.nomad.login.ad.json blank values trigger behavior. HOT 2
- com.apple.applicationaccess-macOS.json missing key HOT 3
- Custom preference keys HOT 1
- Microsoft AutoUpdate json invalid HOT 2
- AirPlay restrictions payload doesn't seem to work? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from profilemanifestsmirror.