[SalesForce] How to get the current profile name in an aura cmp

I need to get the Profile name in my Aura component. I am converting my JS button to a Lightning Quick Action, so I need something like this in my component:

"{!$Profile.Name}"

Best Answer

You can't use $Profile in lightning. For that, you need to write some apex code. Please refer below link for more details https://andrescanavesi.wordpress.com/2018/09/09/migrate-user-profile-label-and-api-to-lightning-components/

Related Topic