Hi everybody,
So to help anyone else who need this, here is all what I did to get Oauth2 working on SuiteCRM8.
First, here is all what I have done on Azure to get this working on my side.
My screenshot are in french, but you will be able to find out the most important part in english views.
On Image1 : you have all the things done : name of the app, id of the app, id of the object, id in the directory, certificates, Redirect URL, URI id of the app. That’s a summary.
On Image2 : you have all the end points listed.
On Image3 : I have the certificate with the secret ID.
On Image4 : I have set the redirect URL
On Image5 : you can see how I have set the rules for feeds
On image7 : this is a very important part, the scopes used. Check here the 4th column (with “Non” for “no” and “Oui” for “Yes”), this is the column for “admin consent”.
With all this set, I have follow the doc and set only a group address (to allow me to have the automatic import for emails).
All this have been working with in this order :
- Set the External OAuth Connector - Type : personnal
Name : Microsoft
Perimeter, 4 lines (in this exact order) :
- offline_access
- https://outlook.office365.com/IMAP.AccessAsUser.All
- User.Read
- User.Read.All
set here also the id of the app, the authorize token (from Azure), the url to the token (from Azure)
Set also additionnal config :
-
Get Token request grant type : authorization_code
-
Refresh token request grant type : refresh_token
-
Set the External OAuth Connection :
Type : personnal
name : full email
Token : Bearer
Choose the External Oauth Connector
→ Identify to retrieve the 2 keys to allow connection.
Carefull here : I had to identify one time as admin (check the beginning of this list for Azure)
- Set incoming emails with OAuth
Type : group
Smtp server : outlook.office365.com
SSL - Port 993
Set also the Oauth connector.
When all is set, then DONT TEST THE CONNNEXION, just broswe the folder and they raise.
Then save and you are ok.
The outgoing email account is easier to set up (smtp.office365.com), classic set up.
Tell me if this is ok with all these elements ![]()





