| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Keychain.AddGenericPassword
Adds a generic password to the keychain.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Keychain | 16.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
MBS( "Keychain.AddGenericPassword"; Service; Account; Password { ; Description } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| Service | The service name. | "test" | |
| Account | The account name. | "john" | |
| Password | The password to use. | "secret" | |
| Description | The description to include in the keychain entry. | "just a test" | Optional |
Result
Returns OK or error.
Description
Adds a generic password to the keychain.Goes into the default keychain and the FileMaker app automatically gets permissions to read it later.
Examples
Add a password:
MBS( "Keychain.AddGenericPassword"; "test"; "john"; "secret"; "just a test" )
See also
- Keychain.DeleteGenericPassword
- Keychain.FindGenericPassword
- Keychain.ListGenericPasswords
- Keychain.UpdateGenericPassword
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