Same user added multiple times in a group. How to take this report ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @KingshukM
Create a function in a scriptInclude to find duplicate user
function getDupGrpMember (){
var dupRecord = [];
var gaDupCheck =new GlideAggregate('sys_user_grmember');
gaDupCheck.addAggregate('COUNT','user');
gaDupCheck.addNullQuery('user');
gaDupCheck.groupBy('user');
gaDupCheck.addHaving('COUNT','>','1');
gaDupCheck.query();
while (gaDupCheck.next()) {
dupRecord.push (gaDupCheck.getValue('user'));
}
return dupRecord;
}
Then Go to Report ->Sys_user table
call that function from report condition:
Then add a related list condition "greater than 1" on the table "Groups" with the filter "group.roles is pps_resource"
