It requires Microsoft Graph Application registration. Start at the Microsoft Azure portal:\\
[https://azure.microsoft.com/en-us/features/azure-portal/]\\
\\
__Application registration__: Go to the App registrations and click on New registration:\\
\\
[attachments|SMTP Microsoft Graph XOAUTH 2 Integration/new_registration.png]\\
\\
Name it. Select __Single-page Application__ as a platform. The redirect URL must end with__WebInterface/login.html__. Then click on register.\\
\\
[CrushOAuth/app_reg_config.png]\\
\\
Make sure that MSAL.js 2.0 and Implicit grant (Access Token, ID Token) grant types are permitted.\\ 
\\
[CrushOAuth/app_reg_auth_config.png]\\
\\
Configure the API permissions:\\
\\
[attachments|app_reg_config_permissions.png]\\
\\
Get Client ID and Tenant ID from App registration -> Overview.\\
\\
[MicrosoftMails/client_id.png]\\
\\
__Group info:__\\
\\
You can add groups claim to the token.\\
\\
[attachments|microsoft_group_info.png]\\ 

__!!!Continue on:__ [CrushOIDC]\\
\\