Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Workspace and Requires role in UI actions

NarayanaR050522
Tera Contributor

Hi All,

 

How Workspace and require roles works in UI Actions, can any one share with real time use cases.

3 REPLIES 3

Dr Atul G- LNG
Tera Patron

https://www.servicenow.com/community/developer-blog/managing-access-to-ui-actions-with-conditions-ro...

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron

@NarayanaR050522 

it's clearly mentioned in docs and easy to understand. what's the confusion?

My thoughts/explanation

UI Action in Workspace
-> To show a UI Action on a Workspace form, enable the required checkboxes in the Workspace section and add the script there.

-> Note that Workspace client scripts support only client‑side objects like g_form.

Requires Role
-> If multiple roles are specified, the logged‑in user must have at least one of them to see the UI Action.

-> The UI Action condition must also be met.

55.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

Tanushree Maiti
Kilo Patron

Hi @NarayanaR050522 

 

Refer following Articles:

How to use UI Actions in Workspaces

Agent Workspace UI action - examples

Building Great Workspace Experiences in ServiceNow: UI/UX Tips for Agents

 

 

 

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