Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Role not showing up in condition in workflow

SuvarnaJadhav
Tera Contributor

I have created a role and added the role to the user, when I check in background script I do see the role for user. But in workflow when I try to get the "Requested For" user's role in condition, it's always evaluating to false. 

1 REPLY 1

GlideFather
Tera Patron

Hi @SuvarnaJadhav,

 

can you provide any of your configurations?

 

What role it is, what scope (global or custom)???

Also in the workflow, please share the condition how it is built. 

 

Tip: for the roles, there are hasRole('itil') and hasRoleExactly('itil') - in the first one admin will evaluate true (itil is inherited) while in the latter it would be false...

 

Please give me more context to give you better response

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */