Python - Infos regarding current logged in user.

Dyt13 211 Reputation points
2022-09-05T09:21:25.5+00:00

Hi,

I have set up a webapp with authentification in Azure.
I'd like to retrieve some basic information about the logged in user on the server side (python).

pseudo-code


from azure.identity import InteractiveBrowserCredential

credential = InteractiveBrowserCredential()
==> Is there a way to know who is the user logged in at this step + retrieve basic info like the one available in the user profile view available in the portal ?


Thx for your help !

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.