137567 - no subject - How can i get all the users with user ty

How can i get all the users with user type "System Administrator"?

OriginalPostID-137567

  Discussion posts and replies are publicly visible

Parents
  • To determine the system admins, you can run the following expression:

    =load(
    local!designerUsers: getdistinctusers(getgroupbyname("Designers")),
    local!adminUsers: apply(fn!isusersystemadministrator,local!designerUsers),
    index(local!designerUsers,where(local!adminUsers),{})
    )

    The default Designers group contains all system admins by rule, but non-admin users can be added to the group so the second step is needed as a safety check.
Reply
  • To determine the system admins, you can run the following expression:

    =load(
    local!designerUsers: getdistinctusers(getgroupbyname("Designers")),
    local!adminUsers: apply(fn!isusersystemadministrator,local!designerUsers),
    index(local!designerUsers,where(local!adminUsers),{})
    )

    The default Designers group contains all system admins by rule, but non-admin users can be added to the group so the second step is needed as a safety check.
Children
No Data