Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+17 more

    Jamf Self Service Credential Helper

    2

    Secure, battle-tested patterns for user detection and credential prompting in Jamf and Kandji scripts

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    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.

    Your agent does

    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

    What you get

    Detect the current console user reliably across all macOS versionsValidate user passwords securely within a Self Service policy scriptEnable FileVault re-enforcement by capturing valid user credentialsAdapt Jamf scripts to work within Kandji custom commands and Iru workflows

    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

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    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 3 months ago

    • One-time purchase, yours forever

    Listed3 months ago

    Frequently Asked Questions