Skip to content

Instantly share code, notes, and snippets.

@jhbush
Created October 30, 2025 05:38
Show Gist options
  • Select an option

  • Save jhbush/2d2db408c8e32e91be2bcc4f62f26b2c to your computer and use it in GitHub Desktop.

Select an option

Save jhbush/2d2db408c8e32e91be2bcc4f62f26b2c to your computer and use it in GitHub Desktop.
Displays Jamf Conditional Access Information for PSSO
#!/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