Same user added multiple times in a group. How to take this report ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks 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"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
The screenshot you pasted shows report to be created on Sys_user_grmember table
but your text says sys_user.
can you please validate and confirm once?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
This didnt work.The screenshot you pasted shows report to be created on Sys_user_grmember table
but your text says sys_user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
