Hi and apologies if this is a duplicate post; in fact I would be surprised if it isn't however after many hours of googling over several days I cannot find a solution to what I thought would be a very common and simple issue.
Service desk works fine with O365 IMAPS - config below
Email - full email address
Password - password
Mail server - outlook.office365.com
Protocol - IMAPS
Port - 993
However when I enforce 2fa it stops working - no great surprise there, however I cannot see any way of providing Jira with the 2fa password and any other options to get past this.
Any advice would be much appreciated.
I have same issue. created app password for O365 but also not working.
Hi @Pravesh Mathema ,
For JSM Cloud as this question was originally asked, you'll now want to use OAuth, as described in Switch your Microsoft and Google email accounts to OAuth . If you're using a different product or deployment type, let me know and I can point you in the right direction.
Cheers,
Daniel | Atlassian Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phil, welcome to the Community and thanks for reaching out!
When 2FA is enabled for Office 365, you'll need to issue an app password for Jira to connect to the mailbox. This is a separate password from what you'd use for the account, and allows Jira (or another application) to bypass 2FA. You enter this in the standard password field in the application (and you don't enter the normal account password anymore).
The Microsoft documentation for using app passwords is available here - and although it's at the top of the document, I want to call out here as well that app passwords need to be enabled for your organization by an Azure/Office365 admin, or you won't see the options mentioned in the rest of the documentation that allow you to create a new one.
Cheers,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel and thanks for the response. Have turned 2fa back on this morning but it takes a while before I can test it. A little confused though because if there is only 1 password, then it is not 2fa... 2fa by definition is 2 methods of authentication.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's a correct assessment! This is partially why Microsoft requires you to enable app passwords separately before they can be created.
The app passwords are randomly generated, and long - so they:
From the standpoint of "how would an application interact with 2FA" - there are some pitfalls. For common second factors:
As a future state, I would lean toward OAuth for mail authentication rather than basic auth with a username/password. We're still adding OAuth as an authentication mechanism for mail in Jira Service Management Cloud, but you can follow along with the progress here: JRACLOUD-72590
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dan, sorry for the late reply and thank you for all your help so far. I've had to remove 2FA for the moment as I can't seem to get it working. After your above explanation, I have done the following:
Turned 2fa back on in O365 portal - without any changes in Jira it continued to work for several hours before any issues - I'm assuming it takes time to populate various servers with the change ?
Created a password for Jira.
Successfully connected service desk with this password.
Tickets could be received but replies were no longer getting back to the reporter. I will try again when I have the time for the service desk to be 'down' for a day as I'm sure it must be something simple. Doesn't make sense that it could receive but not send.
I am adding the email as 'custom' because if I try and add 'Microsoft' account, it defaults to my own email address and I cannot for the life of me find a way to change to my support@ email.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Strike that, after trying to do this many many times when over the first month or so of having an account without success, it suddenly now lets me choose another of my o365 accounts.... I'm not crazy my mother had me tested.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.