Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SystemInfo.IsAdminUser
Tries to check if user is admin user on the system.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SystemInfo | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "SystemInfo.IsAdminUser" )
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" )
Release notes
- Version 11.1
- Rewrote SystemInfo.IsAdminUser function to work again on macOS.
Blog Entries
This function is free to use.
Created 18th June 2015, last changed 28th January 2023
SystemInfo.Is64bitWindows - SystemInfo.IsLowPowerModeEnabled