How to get Salesforce Profile ID for lightning:
Click on gear and then on Setup
Go to Administration, open Profiles category and click on Profile. On the list that will open, click on your profile name.
Your Profile ID is on the URL, after “%2F“, in this case is 00e5Y0000031ca1.