ee.data.setAssetAcl
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Legt die Zugriffssteuerungsliste des Assets mit der angegebenen ID fest.
Die Eigentümer-ACL kann nicht geändert werden. Die endgültige ACL des Assets wird erstellt, indem die OWNER-Einträge der alten ACL mit dem eingehenden ACL-Datensatz zusammengeführt werden.
Der authentifizierte Nutzer muss ein Autor oder Inhaber eines Assets sein, um seine ACL festlegen zu können.
Nutzung | Ausgabe |
---|
ee.data.setAssetAcl(assetId, aclUpdate, callback) | |
Argument | Typ | Details |
---|
assetId | String | Die ID des Assets, für das die ACL festgelegt werden soll. |
aclUpdate | AssetAclUpdate | Die aktualisierte ACL. |
callback | Funktion (optional) | Ein optionaler Callback. Wenn nicht angegeben, erfolgt der Aufruf synchron. An den Callback wird ein leeres Objekt übergeben. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\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. |"]]