2

When exporting an image to an ImageCollection using a serviceaccount to a legacy project, e.g. ee.Export.toAsset(myImage, "description", "projects/earthengine-legacy/assets/projects/myproject/collection") I get an error: Insufficient permissions to create asset 'projects/earthengine-legacy/assets/projects/myproject/collection'. I did give my serviceaccount writer permission on the ImageCollection. When exporting to a non-legacy cloud asset, I can export normally (e.g. projects/<<cloud-project>>/collection).

Any ideas how to make this work?

2 Answers 2

1

For anyone who may stumble upon this, exporting map tiles to a bucket requires owner permissions. Setting writePublicTiles to False (ee.batch.Export.map.toCloudStorage) resolves the issue.

1
  • I use service accounts time to time, haven't faced this yet but I'll keep this in mind. Thank you
    – aldo_tapia
    Commented Jun 10, 2022 at 13:03
0

The 'writer' permission doesn't do anything for legacy projects, sadly. Just use Cloud project when you need multiple accounts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.