maint role

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2015 07:26 PM
With the introduction of the Developer program, is the 'maint' role ever going to become available to developers on their own developer instances?
There is a lot of useful functionality that could be leveraged with this role that could be used to create more powerful applications.
Example includes field types such as Templates, Field Lists and Conditions.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Labels:
-
Instance Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 12:44 AM
Hi Paul,
I believe you just need to modify the read ACL on the sys_user_role table.
It currently has a code which prevents the retrieval of the maint role
if(current.name == 'admin' && !gs.hasRole('admin'))
answer = false;
else if ((current.name == 'maint' || current.name == "nobody") && !gs.hasRole('maint'))
answer = false;
else
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 01:00 AM
Hi Paul, after modifying that Read ACL, i notice that assigning the maint role directly will not work. bummer!
But guess what, i believe I was able to work around the restriction. I assigned the maint role to the admin role (which of course I have...) and voila! Now I have the maint role.
I hope it helps.
Thanks,
Berny

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 01:17 AM
Last time I tried that the maint role was not available for selection. It is interesting that it can be selected on personal DEV instances.
Even with the maint role added in this way, the gs.hasRole('maint') check does not pass, and Field types such as 'Template Value' cannot be selected. There is something in-built that prevents admins from bypassing the security in this way.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022