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, 3 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

    Salesforce Announced Life Science Cloud | Briefly Explained

    Blog in Others

    Salesforce Life Science Cloud is a trusted secure platform for pharmaceutical (pharma) and medical technology (MedTech) organizations to help them accelerate drug and device development,…

    Availability, Chain of Custody Management, Clinical operations, Clinical Trial Journey, Cloudmetic
    Cloudmetic Nov 20, 2023
    1,379  Views
    Create AM Charts Using Salesforce Lightning Component

    How to Create AM Chart Using Salesforce Lightning Component?

    Blog in Lightning

    Hi Friends, When I was learning  AM Chart creation in salesforce lighting, I was facing lots of difficulties to implement this and for every AM…

    Area Chart, Bar Chart, bubble Chart, column Chart, donut Chart
    Prafull Apr 24, 2018
    11,918  Views
    Product Rules

    Product Rules in Salesforce CPQ - Learning Guide

    Blog in Salesforce Products

    Product Rules Product Rules allow us to define advanced configuration logic, compared to Option Constraints.  It also allows us to examine product options within a…

    App Launcher, Configuration Logic, Configuration Rule, CPQ, Customer
    arpit Jun 17, 2022
    5,188  Views

    Popular Salesforce Videos

    App to Track Your Trailblazer Journey | Are you a Trailblazer? | Mini Project | Salesforce Tutorials

    App to Track Your Trailblazer Journey | Are you a Trailblazer? | Mini Project | Salesforce Tutorials

    Video in Salesforce Training, Salesforce Apps

    In this video I will create an App to track our Trailblazer Journey. You will find out if you are a Trailblazer by watching this…

    salesforce, Salesforce Tutorials, Salesforce Video, Salesforce Projects, Salesforce Learning
    Kapil May 14, 2020
    3,150  Views
    Salesforce Apex Trigger Best Practices | Learn Salesforce Series By Algoworks

    Salesforce Apex Trigger Best Practices | Learn Salesforce Series By Algoworks

    Video in Salesforce Apex

    In this video, the following points will be covered - 1. One Trigger Per Object 2. Logic-less Triggers 3. Context-Specific Handler Methods 4. Code Bulkification…

    Salesforce Consultant, Salesforce Apex Trigger, Testing, support, Learn Salesforce Series
    Algoworks Sep 10, 2020
    3,092  Views
    Schedule Apex Jobs with Lighting Web Components | Developer Quick Takes

    Schedule Apex Jobs with Lighting Web Components | Developer Quick Takes

    Video in Salesforce Apex

    Lightning Web Components gives you the ability to give your users a great user experience when interacting with Salesforce. In this example, we will take…

    Salesforce Training, Salesforce Developer, Salesforce Lightning, User Experience, Salesforce Video
    Jogender Sep 21, 2020
    1,921  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.