User Criteria not working - Requirement to restrict a group to see a Quick Link on portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 07:25 AM
Requirement: Restrict a group to see a particular quick link on the portal.
to achieve this, on the sn_ex_sp_quick_link record I have added a user criteria in the Available For related tab. But it's not restricting the group to see the Quick Link. Code is give below. Kindly assist me on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 09:01 AM
Hey @nirwan_ritik ,
Instead of writing code, you can add user criteria by specifying a group there.
In this way, without writing code, you can restrict that quick link to that particular group.
Kindly appreciate the efforts of community contributors by marking appropriate response as the correct solution and helpful, this may help other community users to follow the right solution in the future.
Thanks,
Hamza

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 10:17 AM
can you share your user criteria? this does not seem like something you have to script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 10:26 AM
This condition will never be met:
if (gr.sys_id == user.sys_id) {
I think you want:
if (gr.user == user.sys_id) {