Created
October 30, 2025 05:38
-
-
Save jhbush/2d2db408c8e32e91be2bcc4f62f26b2c to your computer and use it in GitHub Desktop.
Displays Jamf Conditional Access Information for PSSO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Run the command and capture output | |
| output=$(/Library/Application\ Support/JAMF/Jamf.app/Contents/MacOS/Jamf\ Conditional\ Access.app/Contents/MacOS/Jamf\ Conditional\ Access getPSSOStatus 2>/dev/null) | |
| # Extract only the value for isSSOExtensionInFullMode | |
| value=$(echo "$output" | grep -o 'AnyHashable("isSSOExtensionInFullMode"): [^,]*' | awk -F': ' '{print $2}' | xargs) | |
| # Fallback to Unknown if not found | |
| [[ -z "$value" ]] && value="Unknown" | |
| # Output in Jamf EA format | |
| echo "<result>$value</result>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment