Security admin role on dev instance

CV1
Tera Contributor

Hello All,

 

Looking for info on how to allow user/ dev group  to be able to elevate and  add  security_admin only on   DEV instance by them self. What script is needed to added to clone cleanup scripts.

 

TIA 

 

 

 

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

You could for example just add the role to a group and the users to that group on your DEV instance. Then just preserve those records on your DEV instance while cloning.

 

No script involved (or at least no need to do so, you could, though why if that's not necessary).

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

4 REPLIES 4

Badal Khojare
Mega Sage
Mega Sage

Hi @CV1 ,

You mean you need a group to be able to add security_admin role to themselves? I guess it could be added by a user already having a security_admin role and is exercising elevated privilege. Why would you need to add it to clone cleanup script?

Please Mark My Response as Correct/Helpful if it helped.
Regards,
Badal Khojare
Community Rising Star 2023

Hi,

That's right but the group do not have the that option "Elevate Role"  to exercise that. How can that be done so that they will be able to only on DEV instance.

 

TIA

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

You could for example just add the role to a group and the users to that group on your DEV instance. Then just preserve those records on your DEV instance while cloning.

 

No script involved (or at least no need to do so, you could, though why if that's not necessary).

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Chaitali_Vale
Mega Sage
Mega Sage

Hello @CV1 ,
No need to do scripting.
First you need to check that , the logged in user have the security_admin role or not.  For that navigate to System Security -> Users -> Check logged in User have security_admin role in Roles related list.

Chaitali_Vale_0-1695617841142.png

 

Then give the security_admin role to the user who don't have. Navigate to System Security -> Users -> User who don't have security_admin role add security_admin role in Roles related list.

Chaitali_Vale_1-1695618593451.png


Please mark my solution correct or helpful, if applicable.
Thanks & Regards,
Chaitali Vale