# Cannot access project entity properties during migration with JCMA

**URL:** <https://community.developer.atlassian.com/t/cannot-access-project-entity-properties-during-migration-with-jcma/44787>\
**Category:** Cloud Migrations\
**Created:** [January 27, 2021, 10:39pm UTC](https://community.developer.atlassian.com/t/cannot-access-project-entity-properties-during-migration-with-jcma/44787 "2021-01-27T22:39:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertc](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@robertc](https://community.developer.atlassian.com/u/robertc)\
**Post date:** [January 27, 2021, 10:39pm UTC](https://community.developer.atlassian.com/t/cannot-access-project-entity-properties-during-migration-with-jcma/44787/1 "2021-01-27T22:39:06Z")

</div>

Hi,

I’m extending my app to support migration with the JCMA tool. I’ve run into a problem where my app does not have access to project entity properties when it’s

```auto
public void onStartAppMigration(String transferId, MigrationDetails migrationDetails)

```

method gets called.

**Should it be possible to fetch project (and issue) entity properties? Or does it need changes to Jira (e.g. [[MIG-312] Create a bulk API for importing entity properties - Create and track feature requests for Atlassian products.](https://jira.atlassian.com/browse/MIG-312)) to facilitate it?**

I have code in that method which uses injected components:

```auto
@ComponentImport
private final ProjectPropertyService projectPropertyService;
@ComponentImport
private final JiraAuthenticationContext jiraAuthenticationContext;

...

ApplicationUser applicationUser = jiraAuthenticationContext.getLoggedInUser();
projectPropertyService.getProperty(applicationUser, projectKey, propertyKey);

```

Notably, the **applicationUser** is **null** , which presumably causes the **.getProperty()** call to return a permissions error:

```auto
Error Messages: [You cannot view this project.]

```

Regards,  
Robert.

---

<div class="post-metadata">

**Author:** ![techtime](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/techtime/32/40832_2.png) [@techtime](https://community.developer.atlassian.com/u/techtime)\
**Post date:** [January 27, 2021, 11:29pm UTC](https://community.developer.atlassian.com/t/cannot-access-project-entity-properties-during-migration-with-jcma/44787/2 "2021-01-27T23:29:53Z")

</div>

Any reason why you can’t find some admin user (though API) and impersonate it? Not saying this is what you should do, just asking if you tried and it didn’t work somehow?
