# Collect Emails with OAuth2 and Microsoft 365 does not work

**URL:** <https://www.dolibarr.org/forum/t/collect-emails-with-oauth2-and-microsoft-365-does-not-work/24496>\
**Category:** CRM/SRM Modules\
**Created:** [October 31, 2023, 10:06am UTC](https://www.dolibarr.org/forum/t/collect-emails-with-oauth2-and-microsoft-365-does-not-work/24496 "2023-10-31T10:06:11Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Plows](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/plows/32/5660_2.png) [@Plows](https://www.dolibarr.org/forum/u/Plows)\
**Post date:** [February 20, 2024, 11:35am UTC](https://www.dolibarr.org/forum/t/collect-emails-with-oauth2-and-microsoft-365-does-not-work/24496/6 "2024-02-20T11:35:24Z")

</div>

Sure,  
in Dolibarr you need the right scopes, in the E-Mail-Collector you do need the right password as well,

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/9/9be4f9c9c2d48e55e5ad81a412b086977d6ad6f7.png)

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/4/44d86168d2abf0f9ec574dbd20e78f0e66c6eb68.png)

in Azure,

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/a/aeaa6cc5bba6b6f91497c09efc30e918b0fcb150.png)

hope it is of any help.

PS  
I am still with PHP 7.4.33

---

_[View the full topic](https://www.dolibarr.org/forum/t/collect-emails-with-oauth2-and-microsoft-365-does-not-work/24496)._
