Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

User Criteria not working!

Sri56
Tera Contributor

Hi Team,

I have build a user criteria to restrict my catalog items for germany users.

So, below is the screenshot of my user criteria

]

When i check for logs, sometimes working and sometimes not and all users are able to view the catalog item.

even though i mapped this user criteria in not availability column.

There is nothing in available column.

Can someone please help me how to fix this?

 

Thanks,

Sri

12 REPLIES 12

SumanthDosapati
Mega Sage
Mega Sage

Hi,

Image not visible.

Reattach.

 

Regards,
Sumanth

Hi Sumanth,

Thanks for the response.

I have now reattached.

Please check and help!

 

Thanks,

Sri

Can you try this

checkCondition();

function checkCondition(){

var user = new GlideRecord('sys_user');
user.get(gs.getUserID());

if (user.location.country == "USA")
{
     return true;
}
     return false;
}

 

And also to debug it :

Navigate to "User Criteria Diagnostics" from left navigator.

 

Mark as correct and helpful if it solved your query.

Regards,
Sumanth

Still no luck!

Thanks,

Sri