I have created a connected app in Salesforce. Using that connected app i am able to use the credentials of Salesforce for authentication in my external app.
i can get most of the user information (e.g. email, address, phone) by decoding the user id_token provided by Salesforce in the callback url.
Can i also get the Profile(e.g. System Administrator, Free user) of the Salesforce logged in user in the id_token, there is a profile attribute in the id_token but it only contains the link of the user profile page in salesforce.
How can i get the user profile/role in this case? Any help is appreciated.