Approvals widget not visible for snc_internal role user on service portal

Sonu Parab
Mega Sage
Mega Sage

Hi All,
1] We have Approvals widget on Service Portal. This widget is visible for admin user, But when I impersonate to user having role snc_internal then this widget is not visible.
(Some other widgets are visible for this user e.g. Announcement, Top Rated Articles)
2] This widget is on Index page of service portal.I have already added snc_internal role in 'who can view' related list.

Sonu_Parab_0-1676455237266.png


Can anyone guide me regarding this.
Thank you

1 ACCEPTED SOLUTION

SatyakiBose
Mega Sage

Hello @Sonu Parab 

Give the approver_user role to the user, and they will be able to see the approval.

This is an expected platform behavior.

View solution in original post

2 REPLIES 2

SatyakiBose
Mega Sage

Hello @Sonu Parab 

Give the approver_user role to the user, and they will be able to see the approval.

This is an expected platform behavior.

SatyakiBose
Mega Sage

If you navigate to the approval widget server script line 19, you will see that there is a role query being made.

var isMine = gs.hasRole("approval_admin") || (gs.hasRole("approver_user") && isApprovalMine(app));