The User Connection Cleanup Report in Metazoa Snapshot documents active and inactive users' connections to a Salesforce org and can remove assignments, replace references, and transfer record ownership. Admins can preview cleanup with Test Run Only before changing the org directly.
When To Use This Report
- Offboard users or adjust connections after a role change.
- Audit inactive users who retain licenses, memberships, metadata references, or email destinations.
- Schedule recurring checks after new snapshots.
Unlike User Permission Assignments, this report covers metadata links, raw email addresses, and record ownership as well as assignments.
Open The Report
- Right-click a Metadata Snapshot item on the Snapshot desktop.
- Choose User Connection Cleanup.
Select Connections
Click Select Users to add active or inactive users. Select one user to generate a preview; check multiple users to include those users in Display Report.
Choose the connection types to investigate: User Permissions, User Licenses, Data Connections, Metadata Links, Email Addresses, Team Members, and Folder Sharing. Right-click the connection list to check or clear whole categories. For documentation only, skip both cleanup tabs.
User Cleanup
Check the users and connections to process. Cleanup behavior depends on the connection: assignments and memberships can be removed, while manager, metadata, and email references can be replaced.
Click Select Replacement User. For supported assignments and memberships, select Transfer to move the connection rather than delete the assignment. Hover over a connection to read the planned operation.
Choose Test Run Only to print planned operations without changing Salesforce. For a real run, choose Stop After Error or Continue After Error, then click User Cleanup. The right panel records the operations and errors.
Owner Cleanup
Use this tab to transfer record ownership from the selected users to a replacement user.
Click Select Replacement User, then select the standard, custom, or managed objects to process. Search Objects searches for replaceable user relationships and may take several minutes. Use Quick Find Custom Objects to narrow the list.
Choose Test Run Only before clicking Owner Cleanup. A real run uses the same stop-or-continue error options as User Cleanup. Results include record IDs and original owners for rollback.
Preview Report
This tab shows connections for the single user selected on Select Connections.
| Column | Description |
|---|---|
| Connection | The type of record or metadata asset referencing the user. |
| Name | The referencing record or asset name, sometimes with a label. |
| Problem | The severity assigned to the connection. |
| Details | Context explaining the connection or technical problem. |
Display Report
This tab includes the checked users and connections. Filter with Show No Problems, Show Minor Problems, and Show Major Problems. Enable Calculate Indirect for indirect group and queue memberships and folder sharing; large orgs may take longer.
Reports shows tables. Clicking Dashboards reveals charts by severity and connection type. Clicking Summary reveals user-level metrics and a Totals row.
| Column | Description |
|---|---|
| Total Problems | The total across all three tiers, including No Problems. |
| No Problems %, Minor Problems %, Major Problems % | The proportion of evaluated connections in each tier. |
Schedule Report
Schedule report runs after new snapshots on the configured timer, with PDF email delivery optionally limited to minor or major problems, or major problems only. Other destinations include Slack, Content, and Chatter. The Assistant destination saves the chosen document format as Org Intelligence, replacing the previous recording on every run.
What The Results Tell You
- None / No Problems: the connection is working as expected; green rows identify this tier.
- Minor / Minor Problems: investigate and potentially remove the connection; yellow rows identify this tier. Inactive-user group or queue memberships are examples.
- Major / Major Problems: definitely investigate and probably remove the connection. An inactive user retaining a package license is an example.
The report checks user status, permission and license assignments, memberships, user IDs in data connections, usernames in metadata, and raw email addresses in metadata. Findings do not prove that every integration or runtime-built reference has been found, or that a replacement satisfies every business process.
Before a real cleanup, the admin confirms the connection's business purpose with the responsible owner, the intended replacement, and whether removal or transfer is appropriate.
Try The Report
- In a sandbox, use an inactive test user who still holds a package license. Keep a pre-cleanup metadata snapshot.
- Add the user with Select Users, include Package License, and open Preview Report. Expect Major: deactivation has not removed the license assignment.
- On User Cleanup, select a replacement user, check only Package License, and leave Transfer cleared.
- Choose Test Run Only and click User Cleanup. Expect a planned deletion and This was just a Test Run.
- After review, choose Stop After Error and run cleanup. Verify in Salesforce that the package license assignment is gone, take a new snapshot, and rerun the report.
Export And Review Cleanup Results
Right-click report tables to export CSV, XLSX, PDF, or HTML, or choose Explain Report Table. Cleanup text supports copying and exporting.
After a failure or cancellation, inspect the operation results before retrying. Preserve owner-cleanup record IDs and original owners for rollback. After metadata cleanup, take a new snapshot and inspect affected references, not just operation counts.
Reference
User Selection And Search
User selection supports names, permissions, profiles, licenses, roles, filters, and SOQL queries, plus active/inactive status and user type. Replacement-user searches require at least two characters. Use ? for one wildcard character, * for multiple characters, me for the current user, or all for 250 random users.
Replacement Rules
The replacement user cannot also be selected for cleanup. Select Replacement Profile selects both a profile and the associated organization license; both Profile and Organization License must be checked to replace either.
Object Subsets
Certain objects, including Case, Opportunity, and Task, offer open, closed, or all-record subsets. Email-related subsets can distinguish read and unread records. Choose the appropriate subset to preserve historical ownership where needed.
Edit And Clone Users
Right-click users for Edit Selected User, Clone Selected User, or Edit Multiple Users. Editing supports active, inactive, and frozen status; frozen users remain active but cannot log in. Do not edit the currently licensed Snapshot user.
Cloning can copy permission sets, permission set groups, permission set licenses, package licenses, public groups, queues, and team memberships. Password generation and email notification are optional.
Common Questions
Does Deactivating A Salesforce User Remove Every Connection?
No. Licenses, memberships, metadata references, and raw email destinations can remain connected to inactive users.
Can Snapshot Find A User's Email Without A User Reference?
Yes. Email Addresses checks metadata containing the selected user's raw email address, including supported workflow and notification settings.
Does Cleanup Change A Snapshot Or The Live Org?
A real cleanup changes the org directly, rather than preparing a separate deployment. Test Run Only prints planned operations without applying changes.
Related Articles
- License Expense Management Report - prioritize license waste by cost and activity.
- User Permission Assignments Report - bulk-manage permission assignments.
- Profiles and Permission Sets Report - investigate where access comes from.
Further Reading
- Salesforce Org Monitoring - recurring snapshots and risk reporting.
- Salesforce Org Splits (also covers Org Clones) - cleanup during division migrations.
- Salesforce Org Merges - reduce inherited technical debt during consolidation.