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

@CCSF-Syd 

current logged in user using gs.getUserID() which gives user's sysId.

💡 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

I call that from the Script Include, or I need to call it from the filter and pass it as a parameter?

@CCSF-Syd 

directly in script include use that gs.getUserID()

💡 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 

I believe I shared a working approach and link from where you can start and finish your requirement.

💡 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