Does anybody know how technically exactly Jira Service Management integrates with Microsoft 365 mailboxes? Which OAuth grant type is used and if it somehow tied to the machine the integration was set-up the first time?
We had a custom email address configured for at least couple of years now. It worked perfectly fine to this day, but today it started to produce Connection access token retrieval errors until it was rate limited by Jira itself. On Microsoft side the audit log for the mailbox said:
Failure reason: Device object was not found in the tenant '{tenantName}' directory.
Additional Details: Invalid grant due to the following reasons: - Requested SAML 2.0 assertion has invalid Subject Confirmation Method - Application On-Behalf-Of flow is not supported on V2 - Primary refresh token is not signed with session key - Invalid external refresh token - The access grant was obtained for a different tenant
The only thing that changed exactly at the same time errors started to appear was that my own PC was reinstalled and rejoined to Microsoft Azure AD. This is the same PC I set-up Microsoft email integration in Jira Service Management from.
Is this a bug or known limitation?
This error relates to to the Jira device object is not found or has been deleted from your Azure Tenant Entra ID, this is not an issue on the Jira side.
Yes I understand that the cause of the issue is that device object on MS side is deleted, but that's not the question I was asking.
The question is why the integration depends on some device object? Such integration should not be tied to any one user device. It's an integration between MS and Jira itself, not between MS, Jira and my PC. My PC doesn't even have that mailbox configured.
It's clearly something buggy on the OAuth implementation side.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your PC has nothing to do with the integration
Entra ID uses this in its terminology, this is not your device. The Device ID is an ID
So don't read the word device as your PC.
"A device identity is an object in Microsoft Entra ID. This device object is similar to users, groups, or applications. A device identity gives administrators information they can use when making access or configuration decisions."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Device ID is exactly that, a pointer to the Computer/Mobilephone/Tablet/whatever object in the Entra (ex-Azure AD).
I have confirmed that M365 email integration in JSM is tied to the device you are configuring integration with a few moment ago. Steps to reproduce:
1. Install Windows VM and connect it to Entra ID.
2. Setup JSM custom email mailbox.
3. Go to MS Entra Portal and delete Windows VM object.
Result: JSM email integration stops working.
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.