Get User Impersonation Insights#1773
Conversation
This script help to get the impersonator and impersonated user details, and duration of impersonation
mskoddow
left a comment
There was a problem hiding this comment.
Hi @SrijanPatwa
Many thanks for contribution and basically script looks good, however you seem to struggle with naming conventions. Apart from the fact that variable name patterns are not consistent ("checkUserId" vs "eventsGR") the variable name "impersonatorSysId" is misleading as no Sys ID is expected but a user name. Please refactor that and then I can approve your PR.
This script help to get the impersonator and impersonated user details, and duration of impersonation
Hi @mskoddow , I have made the changes in naming conventions. Please review it, thank you. |
mskoddow
left a comment
There was a problem hiding this comment.
Okay, naming conventions is really something you don't seem to like. For example, you shouldn't name a variable "isUserPresent" if it is not of boolean type. So, please read my article https://www.servicenow.com/community/developer-articles/devbasics-give-me-names/ta-p/2323543
But for now I will aprrove the changes.
|
Thanks for your contribution and looking forward to more of your input. |
PR Description:
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions