Skip to content

Commit

Permalink
Merge pull request #1378 from bcgov/BCMOHAD-24687_V1
Browse files Browse the repository at this point in the history
BCMOHAD-24687 & BCMOHAD-24689
  • Loading branch information
RanadheerRG authored Nov 8, 2024
2 parents 6058368 + 0f028f5 commit 452131b
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>
<ReportType xmlns="http://soap.sforce.com/2006/04/metadata">
<baseObject>User</baseObject>
<category>other</category>
<deployed>true</deployed>
<description>User with Permission set</description>
<join>
<outerJoin>false</outerJoin>
<relationship>PermissionSetAssignments</relationship>
</join>
<label>User with Permission set</label>
<sections>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>IsActive</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>CreatedBy</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>CreatedDate</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>true</checkedByDefault>
<field>Name</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>Keycloak_Roles__c</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>LastLoginDate</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>LastModifiedBy</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>LastModifiedDate</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>LastPasswordChangeDate</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>Profile</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>UserRole</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>Id</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>UserType</field>
<table>User</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>Assignee</field>
<table>User.PermissionSetAssignments</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>Username</field>
<table>User</table>
</columns>
<masterLabel>Users</masterLabel>
</sections>
<sections>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>ExpirationDate</field>
<table>User.PermissionSetAssignments</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>PermissionSet</field>
<table>User.PermissionSetAssignments</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>Id</field>
<table>User.PermissionSetAssignments</table>
</columns>
<columns>
<checkedByDefault>false</checkedByDefault>
<field>PermissionSetGroup</field>
<table>User.PermissionSetAssignments</table>
</columns>
<masterLabel>Permission Set Assignments (User)</masterLabel>
</sections>
</ReportType>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<ReportFolder xmlns="http://soap.sforce.com/2006/04/metadata">
<folderShares>
<accessLevel>Manage</accessLevel>
<sharedTo>[email protected]</sharedTo>
<sharedToType>User</sharedToType>
</folderShares>
<name>User Setup</name>
</ReportFolder>
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<Report xmlns="http://soap.sforce.com/2006/04/metadata">
<columns>
<field>FULL_NAME</field>
</columns>
<columns>
<field>PROFILE</field>
</columns>
<columns>
<field>USERNAME</field>
</columns>
<columns>
<field>ACTIVE</field>
</columns>
<columns>
<field>LAST_LOGIN</field>
</columns>
<columns>
<field>ROLE</field>
</columns>
<columns>
<field>User.Keycloak_Roles__c</field>
</columns>
<format>Tabular</format>
<name>Active User Reports</name>
<params>
<name>active</name>
<value>active</value>
</params>
<params>
<name>co</name>
<value>1</value>
</params>
<reportType>User</reportType>
<showDetails>true</showDetails>
<showGrandTotal>true</showGrandTotal>
<showSubTotals>true</showSubTotals>
<sortColumn>ROLE</sortColumn>
<sortOrder>Asc</sortOrder>
<timeFrameFilter>
<dateColumn>LAST_LOGIN</dateColumn>
<interval>INTERVAL_CUSTOM</interval>
</timeFrameFilter>
</Report>
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<Report xmlns="http://soap.sforce.com/2006/04/metadata">
<columns>
<field>User$Name</field>
</columns>
<columns>
<field>User.PermissionSetAssignments$PermissionSetGroup</field>
</columns>
<columns>
<field>User.PermissionSetAssignments$PermissionSet</field>
</columns>
<columns>
<field>User$UserRole</field>
</columns>
<columns>
<field>User$Profile</field>
</columns>
<columns>
<field>User*User$Keycloak_Roles__c</field>
</columns>
<columns>
<field>User$Username</field>
</columns>
<columns>
<aggregateTypes>Sum</aggregateTypes>
<field>User$IsActive</field>
</columns>
<columns>
<field>User.PermissionSetAssignments$ExpirationDate</field>
</columns>
<columns>
<field>User$LastLoginDate</field>
</columns>
<filter>
<criteriaItems>
<column>User$IsActive</column>
<columnToColumn>false</columnToColumn>
<isUnlocked>true</isUnlocked>
<operator>equals</operator>
<value>1</value>
</criteriaItems>
<criteriaItems>
<column>User.PermissionSetAssignments$PermissionSet</column>
<columnToColumn>false</columnToColumn>
<isUnlocked>true</isUnlocked>
<operator>notEqual</operator>
<value></value>
</criteriaItems>
</filter>
<format>Tabular</format>
<name>Active User with Permission Set</name>
<params>
<name>co</name>
<value>1</value>
</params>
<reportType>User_with_Permission_set__c</reportType>
<scope>organization</scope>
<showDetails>true</showDetails>
<showGrandTotal>true</showGrandTotal>
<showSubTotals>false</showSubTotals>
<sortColumn>User$Name</sortColumn>
<sortOrder>Asc</sortOrder>
</Report>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<Report xmlns="http://soap.sforce.com/2006/04/metadata">
<columns>
<field>USERNAME</field>
</columns>
<format>Summary</format>
<groupingsDown>
<dateGranularity>Day</dateGranularity>
<field>PROFILE</field>
<sortOrder>Asc</sortOrder>
</groupingsDown>
<groupingsDown>
<dateGranularity>Day</dateGranularity>
<field>ROLE</field>
<sortOrder>Asc</sortOrder>
</groupingsDown>
<name>License Summary</name>
<params>
<name>active</name>
<value>active</value>
</params>
<params>
<name>co</name>
<value>1</value>
</params>
<reportType>User</reportType>
<showDetails>false</showDetails>
<showGrandTotal>true</showGrandTotal>
<showSubTotals>true</showSubTotals>
<timeFrameFilter>
<dateColumn>LAST_LOGIN</dateColumn>
<interval>INTERVAL_CUSTOM</interval>
</timeFrameFilter>
</Report>

0 comments on commit 452131b

Please sign in to comment.