Works with the AI Agents you already use
Jamf Self Service Credential Helper
Secure, battle-tested patterns for user detection and credential prompting in Jamf and Kandji scripts
$12.99
Jamf Self Service Credential Helper
Example session with this skill installed
Write a bash script for Jamf Self Service that gets the current console user, prompts for their password via AppleScript, and validates it using dscl.
- Read your context and instructions
- Compiled the jamf self service
CURRENT_USER=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ { print $3 }')
PASS=$(osascript -e 'display dialog "Enter Password" default answer "" with hidden answer' -e 'text returned of result')
dscl /Search -authonly "$CURRENT_USER" "$PASS" && echo "Validated" || exit 1
Connects securely to your tools. The creator never sees your data.
About this skill
Secure Scripting for Apple Device Management
Developing Jamf Self Service scripts is notoriously tricky because scripts run as the root user, while the interaction happens in the user context. This skill provides a library of battle-tested patterns to accurately detect the logged-in user and securely prompt for credentials without falling into common security pitfalls.
What it does
- Reliable User Detection: Implements four distinct methods (stat, scutil, $3 parameter, and console) to ensure you never get 'root' when you need the human user.
- Secure Prompting: Provides production-ready templates for AppleScript and JamfHelper prompts that validate passwords against dscl or the keychain.
- Cross-MDM Support: Includes specific adaptations for Kandji custom commands and Iru equivalents.
- Security Hardening: Prevents credential leaking in logs and handles sensitive data using macOS security best practices.
Why use this skill
Instead of scouring Jamf Nation forums for outdated snippets, you get code that accounts for macOS version differences and edge cases like fast user switching. It is specifically designed for systems engineers building FileVault re-enforcement scripts, privilege elevation tools, or custom MDM workflows that require user authentication.
- Does not support Windows or Linux/Unix.
- Relies on standard macOS binaries; may fail if SIP or security tools restrict dscl/osascript.
- Not a standalone app.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 months ago
Requires
Permissions
No special permissions declared or detected