Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Why do I get IllegalArgumentException for rest api call in "enabled" lifecycle method

Recently we have released a new version of our cloud connect add-on and with that, we implemented some business logic in the "enabled" lifecycle method for backward compatibility support.  

This new code invokes a rest api call and retrieves some property values from user jira cloud instance databases.

The rest api call is being failed and return the following error in the event of upgrading already installed add-ons with the new version released.  But this error does not occur for fresh installation and api call returns successful response.

java.lang.IllegalArgumentException: The provided AtlassianHostUser did not specify a user to act as

Can you please provide us the source of the issue and possible resolution for it?

Additional information :

  • In our add-on descriptor, we have defined both "ADMIN" and "ACT_AS_USER" for add-on scopes.
  • We also have a private pre-review version of the add-on for testing purposes and we have tested the above functionality using it successfully. In that case, we always upgraded the add-on by providing the descriptor url using "Add-ons->Manage add-ons->Upload add-on"  button.

Thank you










1 answer


Did you manage to have an explanation for such a behavior ?


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

361 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you