xdmp.getServerFieldNames() as ValueIterator
Returns a sequence of the server field names.
adminrole have privileges to see all of the server fields. Application Services uses several protected server fields, each having a name that starts with "scope@". Therefore, if you are a user with the
adminrole, you will see all of those fields when you call
xdmp.getServerFieldNames(); => ["name1","name2"]