Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Plugin.LimitFunction
Limits a function.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Plugin | 5.4 | Yes | Yes | Yes | Yes | Yes |
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. | "MyFile.fmp12:TestScript" | 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"; ""; "")
See also
- Files.Delete
- Plugin.LockFunction
- Plugin.SetFunctions
- RemoteControl.ClickMouse
- System.Shutdown
- Text.WriteTextFile
- Version
Blog Entries
Created 20th October 2015, last changed 21st October 2017
Plugin.LicenseeName - Plugin.LoadIconvLibrary
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins