how to remove duplicated OOB role

VSN
Tera Expert

I have a OOB role in the dev environment, but it was by mistake duplicated(insert and stay). now it was making lot of confusion.

i try to delete that role but it not happen .

can someone suggested me how to remove that duplicate role in dev environment.

 

thanks in advance

 

4 REPLIES 4

Medi C
Giga Sage

Hi @VSN,

 

Is there any error message you are getting?

Could you try deleting in Scripts - Background:

var current = new GlideRecord("sys_user_role");
if (current.get("SYS_ID")){ //Replace with your role sys_ID
    current.deleteRecord();
}

If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

GV Saranesh Kum
Kilo Guru

Hi @VSN 

Can you share the error message you get when you are trying to delete it.

Please make sure you are in proper application scope as the role is in and try deleting it.

 

I was able to delete OOB role in my PDI Instance without any issue. However, it dint allow me to create duplicate record as the name field is unique.

 

Regards

Saranesh

after clicking the delete button it giving me result as - the page you are looking for could  not be found. 

and still i can see that role was existed in the system.

Hi @VSN,

Have you tried the script I shared? 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.