System Administrator

Certified Senior Developer

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

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.

    This approach is far more efficient than looping over all users in the environment, especially when dealing with a large-scale application with tens of thousands of users.
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.

    This approach is far more efficient than looping over all users in the environment, especially when dealing with a large-scale application with tens of thousands of users.
Children
No Data