Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003eLooker Studio assets include reports and data sources, each with properties like name, title, owner, and creation/modification timestamps.\u003c/p\u003e\n"],["\u003cp\u003eAssets have permissions that define user roles, including viewer, editor, owner, and link-based access.\u003c/p\u003e\n"],["\u003cp\u003eMembers can be individual users, groups, domains, or service accounts, with specific prefixes used for identification.\u003c/p\u003e\n"],["\u003cp\u003eLink sharing allows "anyone with the link" or "anyone in the domain with the link" to view or edit based on the designated role.\u003c/p\u003e\n"],["\u003cp\u003ePermissions are managed through a map of roles to members, with an etag for concurrency control.\u003c/p\u003e\n"]]],[],null,["# Types\n\nAssets\n------\n\nA Looker Studio asset. \n\n {\n \"assetType\": AssetType,\n \"updateTime\": Timestamp,\n \"name\": string,\n \"title\": string,\n \"trashed\": boolean,\n \"updateByMeTime\": Timestamp,\n \"owner\": string,\n \"createTime\": Timestamp,\n \"lastViewByMeTime\": Timestamp,\n \"description\": string,\n \"creator\": string\n }\n\n| Property name | Type | Description |\n|------------------|-------------------------|------------------------------------------------------------------------|\n| assetType | [AssetType](#AssetType) | The type of asset. |\n| updateTime | Timestamp | Date the asset was last modified. |\n| name | string | The name (ID) of the asset. |\n| title | string | The title of the asset. |\n| trashed | boolean | Indicates if the asset is in the trash. |\n| updateByMeTime | Timestamp | Date the asset was last modified by the user making this API call. |\n| owner | string | The owner of the asset. |\n| createTime | Timestamp | Date the asset was created. |\n| lastViewByMeTime | Timestamp | Date the asset was last viewed by the user making this API call. |\n| description | string | Description of the report (only supported for the `REPORT` AssetType). |\n| creator | string | The creator of the asset. |\n\nAssetType\n---------\n\nThe types of Looker Studio assets.\n\n| Enum value | Description |\n|-------------|----------------------|\n| REPORT | A report asset. |\n| DATA_SOURCE | A data source asset. |\n\nRole\n----\n\nA role in a permission.\n\n| Enum value | Description |\n|-------------|------------------------------------------------------------|\n| VIEWER | Describes members that have been granted view permissions. |\n| EDITOR | Describes members that have been granted edit permissions. |\n| OWNER | Describes members that are owners. |\n| LINK_VIEWER | Describes members that have view permissions. |\n| LINK_EDITOR | Describes members that have edit permissions. |\n\nMember\n------\n\nA member of a permissions object.\n\nMembers of the `VIEWER` and `EDITOR` [Role](#Role) are represented using the following\nprefixes:\n\n| Member prefix | Description | Example |\n|-------------------|------------------------------------------------------------------|------------------------------------------------------|\n| `user:` | A Google account. | `user:gus@gmail.com` |\n| `group:` | A Google Group. | `group:api@googlegroups.com` |\n| `domain:` | The domain of a Google Workspace or Cloud Identity organization. | `domain:example.com` |\n| `serviceAccount:` | A Google Cloud Project service account. | `serviceAccount:gus@project.iam.gserviceaccount.com` |\n\nMembers of the `LINK_VIEWER` or `LINK_EDITOR` [Role](#Role) are represented using one\nof the following:\n\n| Member name/prefix | Description |\n|--------------------|----------------------------------------------------------------|\n| `allUsers` | Indicates that *Anyone with the link can view/edit*. |\n| `domain:` | Indicates that *Anyone in domain with the link can view/edit*. |\n\n| **Note:** An asset can either have a `LINK_VIEWER` or `LINK_EDITOR` role, not both.\n\nPermissions\n-----------\n\nLooker Studio permissions for an asset. \n\n {\n \"permissions\": {\n [Role]: {\n \"members\": Member[]\n }\n },\n \"etag\": string\n }\n\n| Property name | Type | Description |\n|---------------|----------------------------------------|---------------------------------------------------|\n| permissions | {[Role](#Role): [Member\\[\\]](#Member)} | A map of role to members. |\n| etag | string | etag to detect and fail concurrent modifications. |\n\n### Examples\n\nA Looker Studio asset shared with a three editors: \n\n {\n \"permissions\": {\n \"OWNER\": {\n \"members\": [\n \"user:gus@gmail.com\"\n ]\n },\n \"EDITOR\": {\n \"members\": [\n \"user:jen@gmail.com\",\n \"user:amy@gmail.com\",\n \"group:api@googlegroups.com\"\n ]\n }\n },\n \"etag\": \"BwXe3ECCjl0=\"\n }\n\nA Looker Studio asset shared with one editor and viewable by anyone with the link. \n\n {\n \"permissions\": {\n \"OWNER\": {\n \"members\": [\n \"user:gus@example.com\"\n ]\n },\n \"EDITOR\": {\n \"members\": [\n \"group:gus-team@example.com\"\n ]\n },\n \"LINK_VIEWER\": {\n \"members\": [\n \"allUsers\"\n ]\n }\n },\n \"etag\": \"OBr4bWCCtl0\"\n }"]]