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?