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.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1    Statistic    FMM    Blog  

SystemInfo.IsAdminUser

Tries to check if user is admin user on the system.

Component Version macOS Windows Linux Server FileMaker iOS SDK
SystemInfo 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "SystemInfo.IsAdminUser" )   More

Parameters

none

Result

Returns 0 or 1.

Description

Tries to check if user is admin user on the system.
Returns 1 for admin or 0 for non admin.
Normally you should not need to know, because you try what you plan to do and see if you get a permission error. Then you can report that error.

This is not about the FileMaker user account, but the Windows system account!
On Linux, this checks whether you run as root.

Examples

Checks for admin account:

$r = MBS( "SystemInfo.IsAdminUser" )

Blog Entries

Release notes

  • Version 11.1
    • Rewrote SystemInfo.IsAdminUser function to work again on macOS.

Created 18th June 2015, last changed 9th February 2021


SystemInfo.Is64bitWindows   -   SystemInfo.IsiOSAppOnMac

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos

Start Chat