Check if current user is Admin in Salesforce
In Salesforce, you can check if the current user is an admin by checking their profile or permissions. The easiest way to do this is by checking if the user has the “Modify All Data” permission, which is a standard permission given to system administrators. Here’s how you can check if the current user is …