Hello experts-
We have found many potential benefits of the buy-side impersonation feature for functional power users in non-prod environments of ESO such as quick troubleshooting, etc. But there is one glaring problem with it-- a non-administrator is able to their permissions by impersonating an administrator.
Is there a way to control the visibility of or disable the "Log on as this user" button according to the user that is being viewed on the User Setup form via scripting or some other way? (To clarify, I'm not talking about basing the ability to do it off the current logged on user-- I know how to do that.)
So basically, it would be the best of all worlds, if we could have a script that would check if the user being displayed is a member of "ESO Administrators" and then not allow impersonation of that user, but allow it for any other non-administrator user that may be displayed.
I've thought of making a custom button and simply hiding the standard one. I think this would be fine, but I haven't figured out how to impersonate a user through script yet... If someone could point me at the correct IAPI object to do this, I'd appreciate it.
If any ideas, please let me know. Thanks in advance.
Mike