- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 01:29 PM
I need to manage who can do what on the change tasks related list of a change. What I'm seeing is that a user was able to create a group filter that has global impact. This is causing problems for everyone else. How do I restrict access to the ability to create filters that impact more than the person creating them?
Thanks for any information you can provide.
:{)
Helpful and Correct tags are appreciated and help others to find information faster
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 08:39 AM
If the users you want to restrict don't need to change the filters or even really see them, you could create a list control with Filter roles populated limiting to specific roles. Other than that, I've seen this kind of question before but haven't found a more explicit answer for filter permissions outside of the list control form.
Here is what I came up with that works for me for disabling the show/hide filters button. All that needs to be added is a GlideAjax call to a Script Include that confirms whether or not the user should be able to show/hide the filters. Then, just change the related list referenced by the two jQuery parts. This one in particular is for the Task SLAs related list on my PDI and works regardless of user preference to load related lists with the form or after the form.
NOTE: This is DOM manipulation which is frowned upon so just be warned.
- Client Script
- Table = Incident
- UI Type = Desktop
- Type = onLoad
- Isolate script = false
function onLoad() {
//Type appropriate comment here, and begin script below
var timeout = setInterval(doSomething, 100);
function doSomething(){
if(jQuery('#tabs2_list .tabs2_tab.tabs2_active[aria-controls="incident.task_sla.task_list"]').length > 0){
jQuery('#incident\\.task_sla\\.task_list .list_filter_toggle').css('pointer-events', 'none');
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 08:39 AM
If the users you want to restrict don't need to change the filters or even really see them, you could create a list control with Filter roles populated limiting to specific roles. Other than that, I've seen this kind of question before but haven't found a more explicit answer for filter permissions outside of the list control form.
Here is what I came up with that works for me for disabling the show/hide filters button. All that needs to be added is a GlideAjax call to a Script Include that confirms whether or not the user should be able to show/hide the filters. Then, just change the related list referenced by the two jQuery parts. This one in particular is for the Task SLAs related list on my PDI and works regardless of user preference to load related lists with the form or after the form.
NOTE: This is DOM manipulation which is frowned upon so just be warned.
- Client Script
- Table = Incident
- UI Type = Desktop
- Type = onLoad
- Isolate script = false
function onLoad() {
//Type appropriate comment here, and begin script below
var timeout = setInterval(doSomething, 100);
function doSomething(){
if(jQuery('#tabs2_list .tabs2_tab.tabs2_active[aria-controls="incident.task_sla.task_list"]').length > 0){
jQuery('#incident\\.task_sla\\.task_list .list_filter_toggle').css('pointer-events', 'none');
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2023 11:27 AM
Hi Claude,
Thanks for the reply. Adding Filter Roles to the list control looks to be doing what I need.
:{)
Helpful and Correct tags are appreciated and help others to find information faster