I am not a Azure and Microsoft guy but there is a friend of mine who is stuck in a situation where he need user attributes like, phone, email, address, etc from Azure active directory for his application hosted on Azure app service. they have developed the website on PHP/Wordpress and also able to authenticate their wp-admin users from Azure Active directory however what is left they need other attributes to store in sql database. so any suggestion which one is the best practice to achieve this?

Thanks, Yousuf


If you already have your users in an Azure AD Tenant, then you already completed step one. Step two is to use Graph API to get this kind of information.

Quickstart for the Azure AD Graph API


Sample: Calling the Azure AD Graph API from a PHP web app


Make sure to read about permissions as well. This is important if you need to get complete user and group profiles in your application.

Permission scopes | Graph API concepts


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.