Help for set up Microsoft 365 Channel

Infos:

  • Used Zammad version: 5.1.
  • Used Zammad installation type: package
  • Operating system: Ubuntu 20.04
  • Browser + version: Chrom and Edge

Expected behavior:

after entering the data, the channel is working
*

Actual behavior:

Abort after steps “Pick an account” → “Permissions requested” →
*

Steps to reproduce the behavior:

  • Register a Zammad App in Azure
  • Fill in the data
  • try to add Account

I cannot set up channel Microsoft365. It always ends with the error mentioned above.

The app is registered in Azure Online as described in the documentation. The permissions are set up as follows:

Email is not set up as an email channel in Zammad.
I can log in via office.microsoft with the data.

Only thing the logs at zammad show is:

119370 I, [16:14:07.184246]  INFO -- : Started POST "/api/v1/external_credentials/microsoft365/app_verify" for x.x.x.x at 2022-07-14 16:14:07 +0200                                                       
119371 I, [16:14:07.192233]  INFO -- : Processing by ExternalCredentialsController#app_verify as JSON
119372 I, [16:14:07.192315]  INFO -- : Parameters: {"client_id"=>"xxxxxx", "client_secret"=>"[FILTERED]", "client_tenant"=>"xxxxxx", "provider"=>"microsoft365")
119373 I, [16:14:07.221999]  INFO -- : Completed 200 OK in 30ms (Views: 0.3ms | ActiveRecord: 5.0ms | Allocations: 8528)
119374 I, [16:14:07.238131]  INFO -- : Started PUT "/api/v1/external_credentials/2" for x.x.x.x at 2022-07-14 16:14:07 +0200
119375 I, [16:14:07.243024]  INFO -- : Processing by ExternalCredentialsController#update as JSON
119376 I, [16:14:07.243101]  INFO -- :   Parameters: {"name"=>"microsoft365", "credentials"=>{"client_id"=>"xxxxxx", "client_secret"=>"[FILTERED]", "client_tenant"=>"xxxxxx", "controller"=>"external_credentials", "action"=>"app_verify", "provider"=>"microsoft365"}, "id"=>"2"}
119377 I, [16:14:07.276964]  INFO -- : Completed 200 OK in 34ms (Views: 0.3ms | ActiveRecord: 9.1ms | Allocations: 10250)
119378 I, [16:14:07.590111]  INFO -- : Started GET "/api/v1/channels_microsoft365?_=1657807974819" for x.x.x.x at 2022-07-14 16:14:07 +0200
119379 I, [16:14:07.595792]  INFO -- : Processing by ChannelsMicrosoft365Controller#index as JSON
119380 I, [16:14:07.595866]  INFO -- :   Parameters: {"_"=>"1657807974819"}
119381 I, [16:14:07.795805]  INFO -- : Completed 200 OK in 200ms (Views: 6.3ms | ActiveRecord: 4.9ms | Allocations: 33599)
119382 I, [16:14:08.795303]  INFO -- : Started GET "/api/v1/external_credentials/microsoft365/link_account" for x.x.x.x at 2022-07-14 16:14:08 +0200
119383 I, [16:14:08.803658]  INFO -- : Processing by ExternalCredentialsController#link_account as HTML
119384 I, [16:14:08.803747]  INFO -- :   Parameters: {"provider"=>"microsoft365"}
119385 I, [16:14:08.824660]  INFO -- : Redirected to https://login.microsoftonline.com/4c967689-c05e-44f9-8b88-37395fcc1775/oauth2/v2.0/authorize?access_type=offline&client_id=xxxxxx&prompt=consent&redirect_uri=https%3A%2F%2Fdemk-srv-103.laserline.own%2Fapi%2Fv1%2Fexternal_credentials%2Fmicrosoft365%2Fcallback&response_type=code&scope=https%3A%2F%2Foutlook.office.com%2FIMAP.AccessAsUser.All+https%3A%2F%2Foutlook.office.com%2FSMTP.Send+offline_access+openid+profile+email
119386 I, [16:14:08.826286]  INFO -- : Completed 302 Found in 22ms (ActiveRecord: 4.5ms | Allocations: 7924)

What are the possible causes for aborting?

Update!

Is it important under which name the app is registered in Azure? Does “Zammad” have to be there or does it not matter? @MrGeneration ?

That is the only difference to the documentation that I can see in our Azure configuration - it is registered by us under “Ticketsystem”.

Thank you for directly mentioning me to draw attention to the thread.
Please send your address and company name as PM to me so that I can generate an workshop offer for you.

2 Likes

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.