Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Remove duplicate records from Group Member[sys_user_grmember] table.

Community Alums
Not applicable

How can we remove duplicates from Group Member table. I know we can use Fix scripts to do that, but I want to know the optimal approach.

 

HrishabhKumar_0-1744268593453.png

 

 

7 REPLIES 7

Community Alums
Not applicable

no I'm saying there are 3 records where (group=tech resource & user=admin HK), There should only be one record.

@Community Alums 

did you check which script is inserting that?

ideally it should not be allowed?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Prasad Pagar
Mega Sage

Hi @Community Alums 

 

Did you tried understanding how duplicate got added at first place? I think fixing or removing it from this may having cascading impact if they are referred anywhere.

 

1. Get your original source fixed which is adding duplicate

2. Find out what cascade impact removal will have

3. Fix existing duplicate records