Forums

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

Schedule Microsoft Entra ID Asset Import

Monty
Contributor
March 5, 2024

Goal:

I want to be able to schedule this import. 

My approach is to trigger the Import Start via the API (but if there is another way, then please let me know.)

References:

I've got my workspace ID, I've got the importSource ID.

I send a POST request according to the documentation and it fails with a (415) Unsupported Media Type error. No biggie, just set the content-type as well. When I set both the Accept and Content-Type, then I get a (400) Bad Request error. 

I've tried the steps outlined in How to schedule Assets import using Automation for Assets and the error is a little more revealing:

Error publishing web request. Response HTTP status: 400
Error response HTTP body:
{"errorMessages":["Cannot start import if run externally"],"errors":{}}

6 answers

1 accepted

0 votes
Answer accepted
Hakan Bahadir {Pio}
Atlassian Partner
March 5, 2024

Hello,

There are 2 different import types for JSM Assets. One of them is out of the box import type which means CSV and JSON. The second one is external import. Atlassian's application and other marketplace applications (including ours) use this import type. The API is designed by Atlassian so that the the import logic (object type/attribute creation, mapping, and scheduling) is in the control of the application.

In summary, at the moment, you won't be able to trigger an import via the API.

FYI

Hakan Bahadir

Pio

 

Monty
Contributor
March 6, 2024

Well, that's frustrating. I figured that was the reason. I wish it were possible to just expose the extension's trigger to the Assets API (or have built-in scheduling).

Monty
Contributor
March 6, 2024

I convinced my organization to buy Premium licensing to get the Asset Management functionality and now I have to tell them that in order to use it I'll need them to purchase another thing. I get that you built an app that does essentially the same thing, with the scheduling feature, and I'm not saying you shouldn't get paid for that work, but honestly, I'd rather Atlassian just buy your products outright and just include it in with Premium.  

These seem like essential features that should just come with Asset Manager.

Like Pio likes this
0 votes
Manuela
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 9, 2025

I can see, thtat the Automation started to work - the request initializes the import from plugin "JSM Assets - Microsoft Entra ID (Azure AD) Beta Integration". 

The problem is that import feezes on the state "Fetching data from external source", does anybody found solution?

Kevin Lukas Wagner June 16, 2025

Hi Manuela,

how did you manage to set up the automation?

I am getting an error message:

"Cannot start import if run externally"
Let me know if you made it work!
Kevin
Manuela
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 16, 2025

Hi Kevin, I've done everything eactly as described in this "workaround": https://support.atlassian.com/jira/kb/schedule-assets-import-using-automation/

I suppose that you also followed it - strange, that on my instnce the rule works, but like I mentioned above import freezes (the import start is not mention in log, only when I cancel). I've made network analysis in my browser and the response is different when I enable import with automation / when I enable manual import. Atlassian support responded to me that they can't help since it's beta. 

Like Kevin Lukas Wagner likes this
Kevin Lukas Wagner June 16, 2025

Thanks for the response!

Would you mind sharing a screenshot with me? (of course masking your details)

Christian Pfister
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2025

@Manuela I'm facing the same issue, I'm able to trigger the import via an automation where I do a REST call to https://api.atlassian.com/jsm/assets/workspace/workspace-id/v1/import/start/import-config-id. The automation runs successfully, the import also starts as expected but then it freezes at "Fetching data from external source". 

Owen Adams
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 18, 2025

We're facing this same issue, everything with the API call is functioning be we get stuck on the same "fetching data from external source" screen.

0 votes
Negin Nafari December 12, 2024

Same problem here :(

This is very unfortunate. Here is the link to the suggestion, please vote: 

https://jira.atlassian.com/browse/JSDCLOUD-9920

0 votes
Simon Bell
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 27, 2024

I too have this problem. We need a way to schedule automated Entra ID imports to Assets - feels like a bit of an oversight this can't be done!

0 votes
Cristian Iorio
Contributor
April 9, 2024

I have the same problem, extremely frustrating!

0 votes
Алишер Кадамов March 11, 2024

Are we gonna have this feature in near feature? Very important

Monty
Contributor
March 12, 2024

I would hope so, but I sincerely doubt it. It's difficult to tell where they are focusing their efforts, but I haven't seen any evidence that this is on any roadmap.

Suggest an answer

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

Atlassian Community Events