Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How can I know that the profile is custom or standard in salesforce through query?

    Tagged: Custom Controller, Salesforce Apex, Salesforce Query, Salesforce SOQL, Standard Controller, User Profile

    • Salesforce® Discussions

      How can I know that the profile is custom or standard in salesforce through query?

      Posted by PRANAV on November 23, 2016 at 3:02 PM

      Hi All,

      How can I know that the profile is custom or standard in salesforce through query?

      Through query I want a list of custom profiles in a org.

      Please give suggestions.

      Thanks

      Mohammad replied 6 years, 4 months ago 3 Members · 2 Replies
      • Custom Controller
      • Salesforce Apex
      • Salesforce Query
      • Salesforce SOQL
      • Standard Controller
      • User Profile
    • 2 Replies
    • Bhavesh

      Member
      December 7, 2016 at 11:07 AM

      Hello Pranav,

      You can do like this:

      List<String> stdProNames= new List<String>{'System Administrator','Standard User','Read Only','Solution Manager','Marketing User','Contract Manager'};
      Profile[] customProfiles = [Select Id, Name from Profile where Name NOT IN :stdProNames];
      System.debug(customProfiles);

    • [adinserter block='9']
    • Mohammad

      Member
      June 11, 2020 at 8:47 AM

      Below SOQL will fetch you all standard profiles.
      SELECT ProfileId, Profile.Name FROM PermissionSet Where Iscustom=false AND ProfileId != null
      Below SOQL will fetch you all custom profiles.
      SELECT ProfileId, Profile.Name FROM PermissionSet Where Iscustom=true AND ProfileId != null

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    testing in salesforce

    5 Expert Tips To Make Testing In Salesforce Easier

    Blog in Others, Salesforce

    Testing in Salesforce is not easy. Since many of the classes are standard Salesforce classes that you don’t have any control over, and can’t customize,…

    Apex Trigger, AppExchange Spps, Automation Testing in Salesforce, Bulk Data, Code Coverage
    Algoworks May 21, 2020
    3,174  Views
    Marketing Automation

    Salesforce Marketing Automation and its Benefits

    Blog in Salesforce Cloud Platform

    Salesforce Marketing Automation is an incredibly powerful tool that can help businesses of all sizes optimize their marketing efforts.  With Marketing automation one can automate…

    Automate Marketing Process, Automation, Brand Awareness, Campaign Management, Campaigns
    SP Jul 25, 2022
    3,130  Views

    Salesforce Nonprofit Cloud Winter '24 Highlights

    Blog in Salesforce Releases

    With the new Salesforce Nonprofit Cloud, now built on and backed by the power of the Salesforce Platform, your organization can be more efficient and…

    Batch Management, Business Rules Engine, Data Processing Engine, DB Services, Development
    DB Sep 7, 2023
    1,559  Views

    Popular Salesforce Videos

    Join My Salesforce Team at Google!

    Join My Salesforce Team at Google!

    Video in Salesforce Stories

    We are hiring four Salesforce Technical Architects on my team at Google. I believe these roles are on one of these most interesting Salesforce implementations…

    Salesforce Jobs, Salesforce Video, Salesforce Learning, Google, Salesforce Team at Google
    Nauman May 17, 2021
    2,079  Views
    Video calling in Salesforce using WebRTC

    Video calling in Salesforce using WebRTC

    Video in Salesforce Training

    Enhance your contact center offering by integrating WebRTC video calling directly into Salesforce Service Cloud. This video will guide you in understanding how you can…

    Salesforce Service Cloud, salesforce, Salesforce Video, Video calling in Salesforce, Video Calling
    Prafull Jul 15, 2020
    2,808  Views
    Embedding Salesforce Einstein Predictions in Tableau with Tomasz Bacewicz

    Embedding Salesforce Einstein Predictions in Tableau with Tomasz Bacewicz

    Video in Salesforce Einstein

    Get the most out of Salesforce Einstein Discovery and Tableau by embedding Predictions directly in your Dashboards! Learn how from a pro. Watch this video…

    Salesforce Training, Salesforce Einstein, Salesforce Einstein Discovery, Salesforce Video, Tableau
    Abhishek Sep 3, 2020
    2,072  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.