/AddGuestUsersWithMicrosftGraph

Example of how you can add a guest user via the Microsoft Graph

Primary LanguageJavaScript

Adding guest users to an Office 365 Group via the Microsoft Graph API

This is a code sample that shows you how to create and add guest users to an Office 365 Group via the Microsoft Graph API.

Testing

Follow the next steps to test out this sample:

  • Create a new Azure AD application
  • The application requires the following permissions:
Application permissions
- Read and write all groups
- Read and write directory data
  • Clone this repo
  • Execute: $ npm install
  • Update the variables in the index.js
  • Execute: $ node index.js

More info

Check out the following article to learn more about this sample: Adding guests to an Office 365 Group via the Microsoft Graph API