gs.getUser
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 01:49 AM
After upgrade to helsinki we have issue in gs.getUser.getName() function. When we impersonate person with ITIL role function provide expected output. but when we logged in as user with but when we impersonate user with no role it give undefined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 05:07 AM
If you want the detail of other your, you don't need to impersonate. You can achieve that like below.
var ourUser = gs.getUser();
gs. Âprint( ÂourUser. ÂgetFirstName());
ourUser = ourUser. ÂgetUserByID( Â'abel.tuter');
gs. Âlog( ÂourUser. ÂgetFirstName());
To get user information for a particular user, first retrieve the current user, and then use that object's getUserByID method to fetch a different user using the user_name field or sys_id on the target record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 05:11 AM
var name=gs.getUserName();
gs.log("Your name is:"+name);
Try with this.