Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Plugin.LimitFunction
Limits a function.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Plugin | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Plugin.LimitFunction"; name { ; privilegeSets; AccountNames; ScriptNames; FileNames } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
name | A function name like RemoteControl.ClickMouse. | "RemoteControl.ClickMouse" | |
privilegeSets | List of privilege set names. | Optional | |
AccountNames | List of account names. | "admin" | Optional |
ScriptNames | List of script names. Each entry contains the name fo the file followed with ":" and the script name. | "Kontakte:TestScript" | Optional |
FileNames | Available in MBS FileMaker Plugin 15.0 or newer. List of file names allowed. Must be same name as returned by Get(FileName). |
"Kontakte" | Optional |
Result
Returns OK or error.
Description
Limits a function.Once limited, the function can only be called if current privilege set, account name and script name match those in the list. Lists can be empty if not needed.
For FileMaker hosting of several clients with one server, we highly recommend to limit the available plugin functions via Plugin.SetFunctions function. You also should limit some functions like Files.Delete or System.Shutdown to be only called by certain user accounts and/or script.
Examples
Limit a function to be called only from a certain script:
MBS("Plugin.LimitFunction"; "Version"; ""; ""; "test.fmp12:test")
Limit a function to be called only from a certain account name:
MBS("Plugin.LimitFunction"; "Text.WriteTextFile"; "Backup"; ""; "")
Limit Shell.Execute to Exports file:
MBS( "Plugin.LimitFunction"; "Shell.Execute"; ""; ""; ""; "Exports" )
See also
- Files.Delete
- Plugin.LockFunction
- Plugin.SetFunctions
- RemoteControl.ClickMouse
- Shell.Execute
- System.Shutdown
- Text.WriteTextFile
- Version
Release notes
- Version 15.0
- Added FileNames parameter for Plugin.LimitFunction function.
Blog Entries
- MBS FileMaker Plugin, version 14.6pr4
- Trigger scripts via plugin and fmplugin extended privilege
- FileMaker Server Security and plugins
- Shared FileMaker Server Hosting and Plugin Security
This function is free to use.
Created 20th October 2015, last changed 12nd December 2024