ee.data.setAssetAcl
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
لیست کنترل دسترسی دارایی را با شناسه داده شده تنظیم می کند.
مالک ACL قابل تغییر نیست و ACL نهایی دارایی با ادغام ورودی های OWNER ACL قدیمی با رکورد ACL ورودی ساخته می شود.
کاربر احراز هویت شده باید نویسنده یا مالک یک دارایی باشد تا ACL آن را تنظیم کند.
استفاده | برمی گرداند | ee.data.setAssetAcl(assetId, aclUpdate, callback ) | |
استدلال | تایپ کنید | جزئیات | assetId | رشته | شناسه دارایی برای تنظیم ACL. |
aclUpdate | AssetAclUpdate | ACL به روز شده |
callback | عملکرد، اختیاری | پاسخ به تماس اختیاری در صورت عدم ارائه، تماس به صورت همزمان انجام می شود. پاسخ تماس به یک شی خالی ارسال می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eDefines how access is controlled for a specific Earth Engine asset using an ID and access control list.\u003c/p\u003e\n"],["\u003cp\u003eMerges existing owner access with new access rules, ensuring the owner's permissions remain unchanged.\u003c/p\u003e\n"],["\u003cp\u003eRequires the user to have write or owner permissions on the asset to modify its access control settings.\u003c/p\u003e\n"],["\u003cp\u003eProvides a function \u003ccode\u003eee.data.setAssetAcl\u003c/code\u003e to update the access control list of the asset, accepting asset ID and updated ACL as arguments.\u003c/p\u003e\n"]]],["This documentation details the process of updating an asset's Access Control List (ACL). Users with writer or owner privileges can modify an asset's ACL using `ee.data.setAssetAcl()`. The function requires the `assetId` and the `aclUpdate` as parameters. The owner's ACL entries cannot be modified and are merged with the new ACL during the update. An optional callback function can be provided for asynchronous execution, which returns an empty object.\n"],null,["# ee.data.setAssetAcl\n\n\u003cbr /\u003e\n\nSets the access control list of the asset with the given ID.\n\n\u003cbr /\u003e\n\nThe owner ACL cannot be changed, and the final ACL of the asset is constructed by merging the OWNER entries of the old ACL with the incoming ACL record.\n\nThe authenticated user must be a writer or owner of an asset to set its ACL.\n\n| Usage | Returns |\n|---------------------------------------------------------|---------|\n| `ee.data.setAssetAcl(assetId, aclUpdate, `*callback*`)` | |\n\n| Argument | Type | Details |\n|-------------|--------------------|----------------------------------------------------------------------------------------------------------------|\n| `assetId` | String | The ID of the asset to set the ACL on. |\n| `aclUpdate` | AssetAclUpdate | The updated ACL. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. The callback is passed an empty object. |"]]