Querying User Accounts on macOS 10.14 Mojave

For reporting purposes we’ve been using queries to return the names of users on Mac systems and whether or not those users are admins. Previous to Mojave, the admin users could be returned using the following query:

strings of values of array "users" of dictionary of file "/private/var/db/dslocal/nodes/Default/groups/admin.plist"

Under Mojave, this returns “Singular expression refers to nonexistent object.” Has anyone found a way around this or an alternate way to query this information?

I believe the directory is now restricted under Mojave and you need something like an MDM solution that gives the Client full disk access.