OBLYTECH Logo
OBLYTECH Logo

Profile Cleanup Path for Legacy Salesforce Orgs

A legacy Salesforce profile cleanup works in five steps: inventory profiles and their users, group people by the work they do, move extra access into permission sets, test each group, then retire the old profile. Skipping the testing step is a common reason cleanups cause access problems.

Why overgrown profiles slow down access work

Profiles tend to grow in place. A new app needs one more object, a team asks for a tab, and an audit finds a field that should be hidden from one group, so someone adds a checkbox to the shared profile. After several years the profile grants far more than any single job needs, and the people who hold it have roles that share little beyond the profile name.

The cost shows up in reviews, which get slower, and in changes, since one edit to a shared profile reaches all users on it. Both get narrower when the profile is cleaned up.

Step 1: Inventory each profile and the people who hold it

Begin with a complete list rather than an estimate. For each profile, record the count of active users, their job titles and their license type. Then export the permissions the profile grants: object access, field access on sensitive data, app and tab visibility, Apex class access and login restrictions. A spreadsheet is enough, as long as a second person can read it without explanation.

Pay particular attention to these areas during the export:

  • Object permissions for standard and custom objects, covering create, read, edit and delete.
  • Field-level security on fields that hold contact details, pricing or personal data.
  • App, tab and page visibility, which often reflects old project work.
  • Record type and page layout assignments tied to the profile.
  • System permissions such as data export or user management.

Mark profiles with zero active users separately, but confirm the count before acting on it. A dormant user may return for a seasonal role, and a profile that looks unused may still be referenced by an integration or a scheduled job. Record those dependencies now so they do not surface during cutover.

If the inventory raises questions about who should hold which access, treat that as a planning problem as well as a technical one. For help planning this work, see Salesforce implementation.

Step 2: Group users by the work they actually do

Profile names describe how an organization once set up its users, not what those users do now. Sit with a few people from each group and ask which records they open each day, which records they create, which reports they run, and whether they have recently been unable to do something they needed. Write the answers in job terms, such as “creates service requests and reads account history,” because those phrases translate into permissions more directly than a team name does.

Build the group list from the interview notes, not the org chart. If an earlier needs assessment already captured this, reuse those notes.

Step 3: Move extra access into permission sets

A permission set adds access on top of a base profile, which makes it the natural home for access that some users need and others do not. Name each set for the capability it grants, not the team that asked for it first. A set called “Case Escalation Review” tells the next admin what it does. A set called “Support Team B” becomes a problem the first time that team is reorganized. For more on structuring the sets, see permission set design for small teams.

Keep the base profile lean. It should hold what users need to sign in and reach the apps they open daily. Put job-specific object access, field access and system rights into sets. Field-level access deserves its own review pass, because a set that opens one sensitive field can be missed when object access alone is checked. Read the compliance reviewer checks for field-level security before you finalize the sets.

Build the sets one group at a time:

  1. Draft a permission set for one job group, using the permissions that group uses in the inventory.
  2. Write a description that names the job, the business owner and the date of the last review.
  3. Record each old profile permission that moved and the set that now holds it.
  4. Assign the set to test users for that group before any real user is touched.

The mapping record pays off later, when someone asks why a user can see a particular field and the answer is one lookup away.

Step 4: Test each user group before retiring the profile

Testing is where most cleanups either hold up or break. A permission that looks correct on paper can still block a task, because the task depends on a second object, a field used in a formula, or a report that reads data the group does not open directly. Build the test plan from the interview notes.

Run the tests with a standard user, not an administrator. Admin accounts often see more than a typical group does, so an admin login can pass tasks that real users cannot complete. Create one test user per group, assign the new profile and sets, and walk through each task in order.

  1. Complete the day-to-day tasks as the test user, noting each step and whether it succeeded.
  2. Open the reports, dashboards and list views the group relies on, and check that the rows and columns match what the group sees today.
  3. Run any scheduled jobs or inbound integrations that act under this group’s access, and confirm their results are unchanged.
  4. Compare each result with the same task run under the old profile, using the same records.
  5. Record each failure with the exact error text, the step where it happened and the permission you believe caused it.

Fix the permission set for each failure, then rerun that task and the tasks next to it in the workflow. Check that the fix did not open access the group should not have. A change that clears one error by granting a broad permission creates a new review problem, so prefer the narrowest permission that lets the task complete.

Step 5: Move users in batches and retire the old profile

Move users in small batches, starting with the group whose work carries the lowest business risk. After each batch, watch support requests for access errors and check that moved users are logging in and completing their tasks.

Leave the old profile in place, with no users assigned, for a holding period that covers at least one full working cycle for each group.

Retire the old profile once no user record still holds it, inactive accounts included, and each group’s business owner has agreed in writing that the new setup has carried them through their cycle. Record the date, the approver and the final user count in the inventory before removal. Decisions about which profiles and access models the org keeps long term belong in the wider plan, which is where strategy and roadmap development work usually sits.

Common mistakes during a profile cleanup

  • Editing the shared profile during the cleanup. Any change reaches all users who have not yet moved, which undoes the benefit of testing in isolation.
  • Naming permission sets after teams. Teams tend to reorganize more often than the tasks they serve change.
  • Testing under an administrator login, which hides missing permissions.
  • Forgetting automation users, such as the accounts that integrations and scheduled jobs run as.
  • Treating a permission as unused because it did not appear in a two-week test window. Some work runs at month end or quarter end.

Keeping the cleanup from returning

Profiles drift back toward being overgrown unless new permissions are reviewed as they are added. Give each permission set a review date and a named owner, and require that any new permission state the job it serves. When a request arrives to add access to an existing group, check whether a set already covers it before creating a new one.

Repeat the inventory on a small number of profiles twice a year and compare active user counts and permission totals with the cleanup figures. A jump in permissions without a matching change in job descriptions is the signal to review. Teams without internal admin capacity can place that calendar with a support arrangement, as covered on the Salesforce support and maintenance page.

Questions about retiring legacy profiles and integration accounts

How do I find the integration accounts that depend on an old profile?

List the users with API-enabled access and the run-as users on scheduled jobs and connected applications, then check their profiles and permission sets in the inventory. Then trigger each integration in the test environment and confirm it still reads and writes the same records.

What should the audit record for a cleanup contain?

The record should list each old profile, the permission sets that replaced its access, the mapping for each moved permission, the test results by group, the approvers and the cutover dates. Store it where the admin team keeps configuration decisions. A new admin or an auditor should be able to trace one permission from the old profile to its current home.

Can the cleanup start before the discovery work is finished?

The inventory and export steps read the org without changing it, so they can begin early. Hold off on creating permission sets until the group list is agreed, because a set built on a draft group list usually needs rework.

What if a group is missing a permission after cutover?

Reassign the affected users to the old profile first, so the work stops failing while you investigate. Correct the permission set, then rerun the failed task and its neighboring tasks in the test environment. Confirm the fix does not grant access beyond what the group needs, and move the users back once the test passes and the business owner agrees.