You can use the Azure Active Directory Graph Client Library for this .
First, you need to configure the application in Azure AD and grant application permissions for the Azure AD schedule.
Active Directory Authentication Library (ADAL) Azure AD Client Client Library Azure AD .
, , , http://rickrainey.com/2015/02/21/introducing-the-azure-ad-graph-api/