Skip to content

consid/o365-employee-directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Office 365 Users

This application shows the list of the Office 365 users in your organisation retrieved using the Microsoft Graph.

Screenshot

This web application has been built using React and shows how you can leverage ADAL JS to connect to the Microsoft Graph. UX is implemented using Office UI Fabric.

Prerequisites

In order to use this application you need the following prerequisites:

  • Office 365 tenant
  • admin access to the Azure Active Directory connected to the Office 365 tenant

Configuration

Following are the steps that you need to complete in order to see this application working:

  • in the old Azure Management Portal (https://manage.windowsazure.com):
    • go to Azure Active Directory (AAD)
    • create a new AAD web application
    • set the return URL to https://localhost:8443
    • copy the web application's Client Id
    • grant the application the following permissions:
      • Windows Azure Active Directory
        • Sign in and read users full profile
      • Microsoft Graph
        • Access directory as the signed in user
        • Read all users full profile
    • in application's manifest enable OAuth implicit flow
  • clone this repo
  • in the app/adal/adal-config.js file in the clientId property paste the Client Id of the newly created AAD application
  • in the command line:
$ npm start
  • in your web browser navigate to https://localhost:8443
  • when prompted, login with your organizational account