Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

Plugin.LimitFunction

Limits a function.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Plugin 5.4 Yes Yes Yes Yes Yes

MBS( "Plugin.LimitFunction"; name { ; privilegeSets; AccountNames; ScriptNames } )

Parameters

Parameter Description Example value
name A function name like RemoteControl.ClickMouse. "RemoteControl.ClickMouse"
privilegeSets Optional
List of privilege set names.
AccountNames Optional
List of account names.
"admin"
ScriptNames Optional
List of script names. Each entry contains the name fo the file followed with ":" and the script name.
"MyFile.fmp12:TestScript"

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


Plugin.GetSuccessReturn   -   Plugin.LockFunction

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins