Works with the AI tools 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.
What you get
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.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 4 months ago
- Passed all security checks, Safe to install