La raccolta accountUserLinks è un insieme di risorse entityUserLink, ognuna delle quali descrive le autorizzazioni dell'account per un singolo utente.
Per un elenco dei metodi per questa risorsa, consulta la fine di questa pagina.
Rappresentazioni delle risorse
Modello JSON per un link utente entità Analytics. Restituisce le autorizzazioni di cui un utente dispone per un'entità.
{ "id": string, "kind": "analytics#entityUserLink", "selfLink": string, "selfLink": string, "selfLink": string, "entity": { "accountRef": { "id": string, "kind": "analytics#accountRef", "href": string, "name": string }, "webPropertyRef": { "id": string, "kind": "analytics#webPropertyRef", "href": string, "accountId": string, "internalWebPropertyId": string, "name": string }, "profileRef": { "id": string, "kind": "analytics#profileRef", "href": string, "accountId": string, "webPropertyId": string, "internalWebPropertyId": string, "name": string } }, "userRef": { "kind": "analytics#userRef", "id": string, "email": string }, "permissions": { "effective": [ string ], "local": [ string ] } }
Nome proprietà | Valore | Descrizione | Note |
---|---|---|---|
entity |
object |
Entità per questo link. Può essere un account, una proprietà web o una vista (profilo). | |
entity.accountRef |
nested object |
Tieni conto di questo link. | |
entity.accountRef.href |
string |
Link per questo account. | |
entity.accountRef.id |
string |
ID account. | |
entity.accountRef.kind |
string |
Riferimento all'account Analytics. | |
entity.accountRef.name |
string |
Nome dell'account. | |
entity.profileRef |
nested object |
Visualizza (profilo) per questo link. | |
entity.profileRef.accountId |
string |
ID account a cui appartiene questa vista (profilo). | |
entity.profileRef.href |
string |
Link di questa vista (profilo). | |
entity.profileRef.id |
string |
Visualizza ID (profilo). | |
entity.profileRef.internalWebPropertyId |
string |
L'ID interno della proprietà web a cui appartiene questa vista (profilo). | |
entity.profileRef.kind |
string |
Riferimento per le viste (profilo) di Analytics. | |
entity.profileRef.name |
string |
Nome di questa vista (profilo). | |
entity.profileRef.webPropertyId |
string |
ID proprietà web del formato UA-XXXXX-YY a cui appartiene questa vista (profilo). | |
entity.webPropertyRef |
nested object |
Proprietà web di questo collegamento. | |
entity.webPropertyRef.accountId |
string |
ID account a cui appartiene questa proprietà web. | |
entity.webPropertyRef.href |
string |
Link di questa proprietà web. | |
entity.webPropertyRef.id |
string |
ID proprietà web nel formato UA-XXXXX-YY. | |
entity.webPropertyRef.internalWebPropertyId |
string |
ID interno per questa proprietà web. | |
entity.webPropertyRef.kind |
string |
Informazioni sulle proprietà web di Analytics. | |
entity.webPropertyRef.name |
string |
Il nome di questa proprietà web. | |
id |
string |
ID collegamento utente entità | |
kind |
string |
Tipo di risorsa per il link dell'utente dell'entità. | |
permissions |
object |
Le autorizzazioni dell'utente per questa entità. | |
permissions.effective[] |
list |
Le autorizzazioni effettive rappresentano tutte le autorizzazioni di cui dispone un utente per questa entità. Queste includono le autorizzazioni implicite (ad es. MODIFICA implica VISUALIZZA) o autorizzazioni ereditate dall'entità principale. Le autorizzazioni effettive sono di sola lettura. | |
permissions.local[] |
list |
Le autorizzazioni assegnate a un utente a questo livello. Non include autorizzazioni implicite o ereditate. Le autorizzazioni locali sono modificabili. | |
selfLink |
string |
Link alla pagina corrente per questa risorsa. | |
userRef |
nested object |
Riferimento utente. | |
userRef.email |
string |
ID email di questo utente. | |
userRef.id |
string |
ID utente. | |
userRef.kind |
string |
Tipo di risorsa per il link di riferimento utente. |
Metodi
- elimina
- Rimuove un utente dall'account specificato.
- inserire
- Aggiunge un nuovo utente all'account specificato se l'utente ha meno di 100 account.
- list
- Elenca i link utente-account per un determinato account.
- aggiornamento
- Aggiorna le autorizzazioni di un utente esistente per l'account in questione.