Request an invite
Docs menu

osmates policy

Show the keys your organization manages through its MDM.

Usage
osmates policy [--json]

An organization sets keys of the com.osmates.OSMates domain in a configuration profile. A managed key wins over your settings in every edition, and a request it forbids fails with the key's name.

Arguments

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/policy.json

domainstringRequired
managedarray of objectsRequired
managed[].allowedboolean
managed[].countinteger
managed[].egressstring

One of open, allowlist, blocked.

managed[].folderstring
managed[].keystringRequired

One of AllowShares, AllowClipboard, AllowDragAndDrop, AllowRemoteLocal, AllowRemoteNetwork, AllowRemoteTailnet, AllowRemoteCloudClients, RequiredEgress, EgressRules, AuditExportFolder, AuditExportKeep, ImageRepositories, AllowOtherMachineSources, ImageSigningKeys.

managed[].keysarray of strings
managed[].repositoriesarray of strings
managed[].rulesarray of strings
managed[].settingstringRequired
problemsarray of objectsRequired
problems[].keystringRequired

One of AllowShares, AllowClipboard, AllowDragAndDrop, AllowRemoteLocal, AllowRemoteNetwork, AllowRemoteTailnet, AllowRemoteCloudClients, RequiredEgress, EgressRules, AuditExportFolder, AuditExportKeep, ImageRepositories, AllowOtherMachineSources, ImageSigningKeys.

problems[].reasonstringRequired

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page