BigSolve home
    • AI AI agents that do the work, not the demo.
    • Analytics Reporting that runs on live data, not a weekly export.
    • Custom Development Custom builds for the workflow no product sold you.
    • Implementation Rollouts that survive contact with users.
    • Integration Integrations that move real money.
    • Case Studies We’d rather show you what changed.
  • Case Studies
  • About
  • Blog
Book a call (opens in a new tab)

Services

    • Case Studies
    • About
    • Careers
    • Blog
    • Contact
    Book a call (opens in a new tab)

    Blog

    Removing Custom Permissions from Profiles in Bulk

    Learn how to decouple Custom Permissions from Profiles without manually clicking through Setup.

    Removing custom permissions from Salesforce profiles in bulk using a SetupEntityAccess SOQL query

    In support of migrating to Permission Sets, Salesforce Administrators are commonly asked to "remove Custom Permissions from Profiles" as an initial step. Luckily, with some SOQL and DML, we can achieve this en masse.

    SetupEntityAccess

    To fully grasp this operation, you'll need a fundamental understanding of the sObject in scope: SetupEntityAccess. This object manages access settings for non-object entities like Apex Classes, Custom Permissions, Flows, etc. within Permission Sets. Imagine it as an access key for granting or restricting users' ability to interact with specific setup components. Holistically, this allows granular control over sensitive configurations.

    How To Handle

    To isolate direct Profile assignments (of Custom Permissions), we need to query this object and isolate Parent.IsOwnedByProfile = true in the WHERE clause. Our example is leveraging the "Convert Leads" Custom Permission.

    ‍

    • Open Developer Console or Salesforce Inspector reloaded (or your tool of choice)
    • Copy & paste the following SOQL query into the Query Editor; ensure that you replace "Convert_Leads" with your Custom Permission's Developer Name:

    ‍

    SELECT Id, ParentId, SetupEntityType, Parent.Name, Parent.Profile.Name, Parent.IsOwnedByProfile
    FROM SetupEntityAccess
    WHERE SetupEntityId IN (SELECT Id FROM CustomPermission WHERE DeveloperName = 'Convert_Leads') and Parent.IsOwnedByProfile = true
    ORDER BY Parent.Profile.Name

    ‍

    • Delete the output rows

    Keep reading.

    More from the engineers who do this for a living.

    BigSolve, Agentforce: Common Agentforce Implementation Mistakes
    Nov 19, 2026

    Common Agentforce Implementation Mistakes and How to Avoid Them

    BigSolve, Strategy: Why Salesforce Projects Fail
    Nov 16, 2026

    Why Salesforce Projects Fail: The Decisions Made Too Late

    BigSolve, Agentforce: 10 Agentforce Use Cases
    Nov 12, 2026

    10 Agentforce Use Cases and How to Choose Your First

    Let’s talk

    Bring us the mess.

    You’ll get a straight answer from someone who builds these systems, not a sales call.

    Book a call (opens in a new tab) Tell us what’s not working

    info@bigsolve.com(860) 245-1071

    BigSolve home

    The last Salesforce partner you’ll ever need.

    Salesforce Partner since 2022 (opens in a new tab)

    Services

    • AI
    • Analytics
    • Custom Development
    • Implementation
    • Integration

    Company

    • About
    • Case Studies
    • Careers
    • Blog
    • Contact

    Get in touch

    • info@bigsolve.com
    • (860) 245-1071
    • Book a call (opens in a new tab)

    LinkedIn (opens in a new tab) Reviews on Clutch (opens in a new tab)

    Keep Up With The Latest
    Join our subscriber list to get the latest news and special offers.
    Thank you! Your submission has been received!
    Oops! Something went wrong while submitting the form.
    bigsolve

    © 2026 BigSolve LLC. All rights reserved.

    Privacy Terms