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.
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
Check out the following article to learn more about this sample: Adding guests to an Office 365 Group via the Microsoft Graph API