- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 12:10 AM
Hi Team,
When I am using the gs.hasRole(); in the UI action it is not working properly.
If(gs.hasRole("custom_role")){
}
Can you please let me know is it expected behavior or is there any alternative for this.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 02:07 AM
Hi @venkatesh tadip,
Check out the article below and the community question, which will be helpful to you.
Community Question: https://www.servicenow.com/community/developer-forum/anyone-had-luck-with-hasroleexactly/m-p/1619201
Article: https://joshneri.us/serverside-hasroleexactly-in-servicenow/
If my response helps you, please mark it as "Accept Solution" or hit the thumbs up to indicate it was helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 12:17 AM
What are you trying to do? Do you have a UI action that is performing different things for users with different roles?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 02:07 AM
Hi @venkatesh tadip,
Check out the article below and the community question, which will be helpful to you.
Community Question: https://www.servicenow.com/community/developer-forum/anyone-had-luck-with-hasroleexactly/m-p/1619201
Article: https://joshneri.us/serverside-hasroleexactly-in-servicenow/
If my response helps you, please mark it as "Accept Solution" or hit the thumbs up to indicate it was helpful.