restrict agentic workflow

El Cuchi
Tera Guru

hi There,

 

i created an agentic workflow and the trigger is a ui action created through the WF wizard.

the ui action is visible in the incident form.

Now i want to visible to a specific role (group of people).

 

i tried using the "user access" section in the wizard but i can not select my custom role. Also, the ui action automatically created is read only.

 

how do i do this?

regards,

max

5 REPLIES 5

rpriyadarshy
Kilo Sage

 

 

(1) System Definition > UI Actions --> Required Roles Related List 

 

 

(2) Or Add Condition as per your roles Like -  gs.hasRole('itil_admin')

 

(3) In You case you can try this also  - 

Many  think it is a UI Action but in Workspace it is actually a Declarative Action, where role visibility is configured separately.
Workspace Experience →
 
UX Form Actions
 
Declarative Actions
 
Can you post some screenshots also?
 
Regards
RP

Hi RP,

thank you so much for your response. 

since i am not using workspace and also based on the agentic workflow, it is a ui action. Additionally, it is read-only ui action so i cannot add a role or code to it.

 

@El Cuchi  

From the screenshot I can see:

  • Protection policy = Protected
  • Banner says "This item is read-only based on its protection policy"
  • Comment says "This UI Action was auto-generated"

In this case have a look at this Script Include - DONOT MODIFY.

 

sn_uxc_gen_ai.UXCTriggerUtils().canRun
 
Also Can you check this Table- sn_aia_trigger_configuration  for you any trigger entry for your agent 
 
This will give you some Idea
Regards
RP

yashkamde
Giga Sage

Hello @El Cuchi ,

 

You can add the required role directly under Agentic Workflow → Define user access :

Screenshot 2026-09-28 103007.pngScreenshot 2026-09-28 103014.png

to control which users can access the workflow, including when it is invoked through the configured UI Action.

 

If my response helped mark as helpful and accept the solution.