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:
11.4
11.5
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
Statistic
FMM
Blog
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 does not need a paid license.
Created 18th June 2015, last changed 28th January 2023
SystemInfo.Is64bitWindows - SystemInfo.IsLowPowerModeEnabled
