Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
ee.data.getAssetRoots
Stay organized with collections
Save and categorize content based on your preferences.
Returns the list of the root folders the user owns. The "id" values for roots are two levels deep, e.g. "users/johndoe" not "users/johndoe/notaroot".
| Usage | Returns | ee.data.getAssetRoots(callback) | List |
| Argument | Type | Details | callback | Function, optional | An optional callback. If not supplied, the call is made synchronously. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],["This API retrieves a list of root folders owned by a user. The root folder identifiers are two levels deep, for instance, \"users/johndoe.\" The function `ee.data.getAssetRoots()` returns a list of these root folders. An optional callback function can be provided for asynchronous operation; otherwise, the call will execute synchronously.\n"]]