Service Portal is showing undefined instead of user's first name

Devika3
Tera Guru

Hi All,

When a non admin user is logged into the service portal, it is showing 'Hi Undefined' . Actually it has to show 'Hi (user's first name)'. There is no change in html code and client side code in widget. We have recently installed HRSD plugin. Please let us know if anyone experienced this issue before.

Regards,

Devika.

1 ACCEPTED SOLUTION

Devika3
Tera Guru

The issue happened due to some ACL that got installed with HRSD.

View solution in original post

9 REPLIES 9

Mohith Devatte
Tera Sage
Tera Sage
Hello @Devika3 ,
Can you try this below code in HTML and client controller 
 
Client controller:

api.controller=function($scope) {
/* widget controller */
var c = this;
c.greeting = 'Hi ' + $scope.user.first_name + ', Welcome to the Bristow ServiceDesk';



};

 

HTML:

{{c.greeting}}
 
Hope this works .
 
Mark the answer correct if this helps you 
 
Thanks,
Mohith

The same code we are using in our production instance. And also if it is the issue with the code, the problem will occur for the admin users also, the issue is only to the non admin users. 

There could be an issue with acls:

1. Check for below acl on user table:

sys_user.none

sys_user.*

sys_user.first_name

There could be an acl restricting access to first_name field or all fields of user table. Also compare these ACLs in both your instances


Raghav
MVP 2023

Devika3
Tera Guru

The issue happened due to some ACL that got installed with HRSD.

Hi @Devika3 ,
How did you manage to fix it? Which ACL did you modify?
We are facing the same issue.
Regards.