Skip to content

Commit eb57919

Browse files
authored
Merge pull request #25 from fn20200323/usersInGroupsInactive
Check for users in inactive groups
2 parents b2eaebc + 510193b commit eb57919

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ The platform is Javascript and a lot of code is run in a global variable scope.
118118
### Admins not logged in for 1 month
119119
Monitor users with role `admin` (not locked out) that are not logged for longer than 1 month
120120

121+
### Users left in already inactivated Groups
122+
After deactivation of Groups there can be still some users.
123+
Group offer membership but also can provide some roles that after deactivation should be considered as no longer needed.
124+
125+
121126
## Category: User Experience
122127

123128

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<unload unload_date="2021-10-21 19:59:27">
3+
<scan_table_check action="INSERT_OR_UPDATE">
4+
<active>true</active>
5+
<advanced>true</advanced>
6+
<attributes display_value="Users belongs to inactive Group">a49d119e2f9b30100b40bea62799b627</attributes>
7+
<category>security</category>
8+
<conditions table="sys_user_grmember">group.active=false^EQ<item goto="false" or="false" field="" endquery="true" value="" operator="=" newquery="false"/>
9+
</conditions>
10+
<description/>
11+
<documentation_url/>
12+
<name>Users belongs to inactive Group</name>
13+
<priority>3</priority>
14+
<resolution_details/>
15+
<script><![CDATA[(function(finding, current) {
16+
17+
var grGroup = new GlideRecord("sys_user_group");
18+
grGroup.get(current.group);
19+
20+
finding.setCurrentSource(grGroup);
21+
finding.increment();
22+
23+
24+
})(finding, current);]]></script>
25+
<short_description>List users that still belongs to already inactivated groups</short_description>
26+
<sys_class_name>scan_table_check</sys_class_name>
27+
<sys_created_by>admin</sys_created_by>
28+
<sys_created_on>2021-10-21 19:31:07</sys_created_on>
29+
<sys_id>5adc555e2f9b30100b40bea62799b6e3</sys_id>
30+
<sys_mod_count>3</sys_mod_count>
31+
<sys_name>Users belongs to inactive Group</sys_name>
32+
<sys_package display_value="Global" source="global">global</sys_package>
33+
<sys_policy/>
34+
<sys_scope display_value="Global">global</sys_scope>
35+
<sys_update_name>scan_table_check_5adc555e2f9b30100b40bea62799b6e3</sys_update_name>
36+
<sys_updated_by>admin</sys_updated_by>
37+
<sys_updated_on>2021-10-21 19:59:01</sys_updated_on>
38+
<table>sys_user_grmember</table>
39+
<use_manifest>false</use_manifest>
40+
</scan_table_check>
41+
</unload>

0 commit comments

Comments
 (0)