Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Syncing Entra ID User through Assets to Atlassian Users

Gerrit Wahlers 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

0 votes
Monty 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}}
0 votes
Алишер Кадамов March 4, 2024

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

0 votes
Rodney Dsouza 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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events