The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Syncing Entra ID User through Assets to Atlassian Users

Gerrit Wahlers
Contributor
November 17, 2023

We just tried the new Jira App "JSM Assets - Microsoft Entra ID (Azure AD) Integration" for getting our Entra ID Users and groups into Asset DB. We also are looking for a solution to link the asset-users to their atlassian users. We tried creating a new field "Jira User" and letting the mail-content flow into that field, but no Atlassian user is linked to that field after importing all assets again. 
How do you link your Entra ID-Users to assets and/or Atlassian Users in your company?

Target: We want to display the user phone, mobile number and the city from our Entra ID accounts in every ticket.

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Алишер Кадамов
March 4, 2024

Have same problem, and it's very fundamental. Need to have it.

0 votes
Monty
Contributor
March 5, 2024

You can create an automation that runs when an object is created.

First, add the following attributes to your object schema:

Agent: Object type: user

Jira Groups: Object type: group

You can call them whatever you like.

Automation

I add Audit Log steps in between to check values.

 

  1. Trigger: Object Created
    1. Select your Schema
  2. Add Value to Audit Log:
    1. User is {{object.Mail}}
  3. If block
    1. AQL Condition: objecttype = Users
  4. Send WebRequest
    1. URL: https://XXXXXX.atlassian.net/rest/api/2/user/search?query={{object.Mail}}
    2. Delay Execution of subsequent rules until received.
    3. Headers
      1. Key: Authorization, Value: Basic 7fd86c5cd... (mark as hidden)
        1. Use your API Key See: https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/
  5. Audit Log: (User API) Web Response = {{webResponse.body}}
  6. {{Smart values}} Condition
    1. {{webResponse.body.size}} equals 1
    2. (We're just checking that we found a user.)
  7. Create Variable: jiraUserAccountId, smart value: {{webResponse.body.accountId}}
  8. Send WebRequest
    1. URL: https://XXXXXX.atlassian.net/rest/api/3/user/groups?accountId={{jiraUserAccountId}}
    2. Rest of the other settings same as before.
  9. Audit Log: (User Groups API) Web Response: {{webResponse}}
  10. Audit Log: Jira Groups: {{webResponse.body.name}}
  11. Edit Object
    1. Agent: {{jiraUserAccountId}}
    2. Jira Groups: {{webResponse.body.name}}
Owen Adams
Contributor
April 9, 2025

I'm trying to implement this into my environment and I don't think I'm getting anything back from the API but I'm not sure why.Screenshot 2025-04-09 105215.png

0 votes
Rodney D'Souza
Contributor
January 15, 2024

"Target: We want to display the user phone, mobile number and the city from our Entra ID accounts in every ticket."

For this part, you should be able to use a new custom field of type Assets.   Then using Automation triggered on ticket creation to populate the field by string matching on the Reporter's name or email address using Asset Query Language (AQL)

Алишер Кадамов
March 4, 2024

But we need Atlassian User ID in attributes to do that

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events