We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How do I limit which HR Services that HR Agents can see on the case-creation-page in HR Agent Worksp

CCSF-Syd
Tera Expert

I would like to know how to limit which HR Services (in the same COE) are available to different HR Agents on the case-creation-page in the HR Agent Workspace.

In the attached screenshot, I would like Agent 1 to see all 3: NLI, FFWO, General ER Case but I would like Agent 2 to ONLY see NLI, General ER Case and NOT see FFWO.

How can I accomplish this?

8 REPLIES 8

Tanushree Maiti
Giga Sage

Please refer this links, see if it helps you:

https://www.servicenow.com/community/developer-forum/restrict-the-availability-of-a-hr-service-in-ca...

https://noderegister.service-now.com/kb?id=kb_article_view&sysparm_article=KB0858730

https://www.servicenow.com/community/hrsd-forum/restricting-hr-service-in-create-new-case-in-native-...

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Ankur Bawiskar
Tera Patron

@CCSF-Syd 

you can handle this via case creation config using dynamic filter

see this link on how opened for is restricted, similarly enhance it for HR Services

How to restrict “Opened for” users based on assignment group type in HR Agent Workspace? 

Also try this, create classless script include in HR Core scope and call it from that condition and manipulate the HR Services

AnkurBawiskar_0-1770693813806.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@CCSF-Syd 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

It is a good idea, but how do I get the current user in that script include "getMyServices()"?