Is there a way to get to know all System Administrator on a given environment? without any plugins.
Discussion posts and replies are publicly visible
As an example I am attaching a sample code here to get all the SAs among list of users,
load( local!saArray: apply( isusersystemadministrator( _ ), { "Mark", "James_Adams", "Alice" } ), index( { "Mark", "James_Adams", "Alice" }, wherecontains( true, local!saArray ) ) )
I have taken three sample users here out of which one is SA. You can use the same by replacing the users list with all the users in your envt.
Hope this helps
This was a super easy route. Thanks!