
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 06:01 AM
We have a scoped app which generates a release management task record. The task can be reassigned, but currently its shows the full list of users, and we would like to limit this to users with ITIL role only. Tried javascript:'roles=RoleName'; but its still showing the full list. Can anyone advise if this is a syntax issue or an issue trying to override from the scoped app?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 06:23 AM
try this directly without javascript
roles=itil
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 06:23 AM
try this directly without javascript
roles=itil
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 06:26 AM
Hello @Cirrus
try the below reference Qualifier and make sure your scope will be correct .
I apply for the assigned to field you can change according to your requirement.
If you found this helpful, please give a thumbs up OR mark it as the solution. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 06:27 AM
Hi @Cirrus ,
You might have to query the sys_user_role table as it is not directly accessible from the scoped application.
javascript:"sys_idIN"+getRoledUsers("itil").join(",").
Refer to : https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/script/server-scripting/t...
If my answer helped in any way, please mark it as ✅Correct & 👍Helpful.
Regards,
Mahathi