• About
  • Contact me!

Salesforce Everywhere

~ Blog on Salesforce Dev and admin stuff

Salesforce Everywhere

Tag Archives: Profile name

Tip#11 : Getting Role name and Profile Name from User Object

28 Monday Sep 2015

Posted by Mani in Apex

≈ Leave a comment

Tags

Profile name, role name

To fetch Role and Profile name for the logged in user in APEX, use the following SOQL:

SELECT UserRole.Name, Profile.Name FROM User

Please note that UserRole and Profile are lookup fields in User object.

Blog Stats

  • 146,388 hits

Archives

Recent Posts: Salesforce Everywhere

Expert Salesforce Solutions from a Turnaround Master :)

Einstein GPT

How to get field values on onLoad in lightning-record-edit-form in LWC?

Using Dynamic Actions

How to check if the logged in user is a Guest user or not in APEX class?

Connect with me

  • View @manibalan_s’s profile on Twitter
  • LinkedIn

Follow this Blog via Email

Enter your email address and click on Follow us (below) to follow this blog and receive notifications of new posts by email.

Powered by WordPress.com.

Loading Comments...