Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Keychain.FindGenericPassword

Finds a password for a keychain item and returns it.

Component Version macOS Windows Linux Server iOS SDK
Keychain 16.3 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "Keychain.FindGenericPassword"; Service; Account { ; UIAllowed } )   More

Parameters

Parameter Description Example Flags
Service The service name. "test"
Account The account name. "john"
UIAllowed Whether GUI dialogs are allowed to show.
Pass Allow to allow, Fail to not allow or Skip to skip items that would need a password dialog.
Optional

Result

Returns text or error.

Description

Finds a password for a keychain item and returns it.
Common errors include -128 for cancellation and -25300 for item not found.

Examples

Query a password:

MBS( "Keychain.FindGenericPassword"; "test"; "john" )

Example result: secret

See also

Release notes

  • Version 16.3
    • Added Keychain.AddGenericPassword, Keychain.DeleteGenericPassword, Keychain.FindGenericPassword, Keychain.ListGenericPasswords and Keychain.UpdateGenericPassword functions.

This function checks for a license.

Created 8th May 2026, last changed 8th May 2026


Keychain.DeletePassword - Keychain.ListAccounts