Uprawnienia: poprawka
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Aktualizowanie uprawnień zasobu Looker Studio.
Żądanie
Żądanie HTTP
PATCH https://datastudio.googleapis.com/v1/assets/{assetName}/permissions
Parametry ścieżki
Nazwa parametru |
Typ |
Opis |
assetName |
ciąg znaków |
Nazwa (identyfikator) zasobu. |
Autoryzacja
Ta prośba wymaga, aby autoryzowany użytkownik miał wystarczające uprawnienia do
zarządzać uprawnieniami i autoryzacją zasobów w następującym zakresie:
Zakres |
https://www.googleapis.com/auth/datastudio |
Treść żądania
W treści żądania podaj te właściwości:
Nazwa usługi |
Typ |
Opis |
uprawnienia
|
Uprawnienia
|
Zaktualizowane uprawnienia.
Nie można zaktualizować roli OWNER . |
Odpowiedź
Jeśli operacja się uda, ta metoda zwróci zaktualizowany obiekt Permissions.
Przykład
Poniżej znajdziesz informacje o uprawnieniach dotyczących zasobu Looker Studio.
PATCH https://datastudio.googleapis.com/v1/assets/assetName/permissions
Treść żądania:
{
"permissions": {
"permissions": {
"OWNER": {
"members": [
"user:jen@gmail.com"
]
},
"VIEWER": {
"members": [
"user:gus@gmail.com"
]
}
}
}
}
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eThis document outlines how to update permissions for a Looker Studio asset using the \u003ccode\u003ePATCH\u003c/code\u003e method and provides details about the required request parameters and authorization scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should include the updated permissions object, specifying roles (like OWNER, VIEWER) and their corresponding members, but note that the OWNER role cannot be modified.\u003c/p\u003e\n"],["\u003cp\u003eA successful request will return the updated Permissions object, confirming the changes made to the asset's access control.\u003c/p\u003e\n"]]],[],null,["# Permissions: patch\n\nUpdate permissions for a Looker Studio asset.\n\nRequest\n-------\n\n### HTTP request\n\n PATCH https://datastudio.googleapis.com/v1/assets/{assetName}/permissions\n\n### Path parameters\n\n| Parameter name | Type | Description |\n|----------------|--------|-----------------------------|\n| assetName | string | The name (ID) of the asset. |\n\n### Authorization\n\nThis request requires the authorized user to have sufficient permissions to\nmanage asset permissions and authorization with the following scope:\n\n| Scope |\n|----------------------------------------------|\n| `https://www.googleapis.com/auth/datastudio` |\n\n### Request body\n\nIn the request body, supply the following properties:\n\n| Property name | Type | Description |\n|---------------|-------------------------------------------------------------------------|---------------------------------------------------------------------|\n| permissions | [Permissions](/looker-studio/integrate/api/reference/types#Permissions) | The updated permissions object. The `OWNER` role cannot be updated. |\n\nResponse\n--------\n\nIf successful, this method returns the updated [Permissions](/looker-studio/integrate/api/reference/types#Permissions) object.\n\nExample\n-------\n\nThe following updates the permissions for a Looker Studio asset. \n\n PATCH https://datastudio.googleapis.com/v1/assets/\u003cvar translate=\"no\"\u003eassetName\u003c/var\u003e/permissions\n\nRequest body: \n\n {\n \"permissions\": {\n \"permissions\": {\n \"OWNER\": {\n \"members\": [\n \"user:jen@gmail.com\"\n ]\n },\n \"VIEWER\": {\n \"members\": [\n \"user:gus@gmail.com\"\n ]\n }\n }\n }\n }"]]