1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="analytics_v3.html">Google Analytics API</a> . <a href="analytics_v3.management.html">management</a> . <a href="analytics_v3.management.accountUserLinks.html">accountUserLinks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81  <code><a href="#delete">delete(accountId, linkId)</a></code></p>
82<p class="firstline">Removes a user from the given account.</p>
83<p class="toc_element">
84  <code><a href="#insert">insert(accountId, body=None)</a></code></p>
85<p class="firstline">Adds a new user to the given account.</p>
86<p class="toc_element">
87  <code><a href="#list">list(accountId, max_results=None, start_index=None)</a></code></p>
88<p class="firstline">Lists account-user links for a given account.</p>
89<p class="toc_element">
90  <code><a href="#update">update(accountId, linkId, body=None)</a></code></p>
91<p class="firstline">Updates permissions for an existing user on the given account.</p>
92<h3>Method Details</h3>
93<div class="method">
94    <code class="details" id="close">close()</code>
95  <pre>Close httplib2 connections.</pre>
96</div>
97
98<div class="method">
99    <code class="details" id="delete">delete(accountId, linkId)</code>
100  <pre>Removes a user from the given account.
101
102Args:
103  accountId: string, Account ID to delete the user link for. (required)
104  linkId: string, Link ID to delete the user link for. (required)
105</pre>
106</div>
107
108<div class="method">
109    <code class="details" id="insert">insert(accountId, body=None)</code>
110  <pre>Adds a new user to the given account.
111
112Args:
113  accountId: string, Account ID to create the user link for. (required)
114  body: object, The request body.
115    The object takes the form of:
116
117{ # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
118  &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
119    &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
120      &quot;href&quot;: &quot;A String&quot;, # Link for this account.
121      &quot;id&quot;: &quot;A String&quot;, # Account ID.
122      &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
123      &quot;name&quot;: &quot;A String&quot;, # Account name.
124    },
125    &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
126      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
127      &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
128      &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
129      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
130      &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
131      &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
132      &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
133    },
134    &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
135      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
136      &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
137      &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
138      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
139      &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
140      &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
141    },
142  },
143  &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
144  &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
145  &quot;permissions&quot;: { # Permissions the user has for this entity.
146    &quot;effective&quot;: [ # Effective permissions represent all the permissions that a user has for this entity. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent entity. Effective permissions are read-only.
147      &quot;A String&quot;,
148    ],
149    &quot;local&quot;: [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable.
150      &quot;A String&quot;,
151    ],
152  },
153  &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
154  &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
155    &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
156    &quot;id&quot;: &quot;A String&quot;, # User ID.
157    &quot;kind&quot;: &quot;analytics#userRef&quot;,
158  },
159}
160
161
162Returns:
163  An object of the form:
164
165    { # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
166  &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
167    &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
168      &quot;href&quot;: &quot;A String&quot;, # Link for this account.
169      &quot;id&quot;: &quot;A String&quot;, # Account ID.
170      &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
171      &quot;name&quot;: &quot;A String&quot;, # Account name.
172    },
173    &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
174      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
175      &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
176      &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
177      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
178      &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
179      &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
180      &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
181    },
182    &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
183      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
184      &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
185      &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
186      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
187      &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
188      &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
189    },
190  },
191  &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
192  &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
193  &quot;permissions&quot;: { # Permissions the user has for this entity.
194    &quot;effective&quot;: [ # Effective permissions represent all the permissions that a user has for this entity. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent entity. Effective permissions are read-only.
195      &quot;A String&quot;,
196    ],
197    &quot;local&quot;: [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable.
198      &quot;A String&quot;,
199    ],
200  },
201  &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
202  &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
203    &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
204    &quot;id&quot;: &quot;A String&quot;, # User ID.
205    &quot;kind&quot;: &quot;analytics#userRef&quot;,
206  },
207}</pre>
208</div>
209
210<div class="method">
211    <code class="details" id="list">list(accountId, max_results=None, start_index=None)</code>
212  <pre>Lists account-user links for a given account.
213
214Args:
215  accountId: string, Account ID to retrieve the user links for. (required)
216  max_results: integer, The maximum number of account-user links to include in this response.
217  start_index: integer, An index of the first account-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
218
219Returns:
220  An object of the form:
221
222    { # An entity user link collection provides a list of Analytics ACL links Each resource in this collection corresponds to a single link.
223  &quot;items&quot;: [ # A list of entity user links.
224    { # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
225      &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
226        &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
227          &quot;href&quot;: &quot;A String&quot;, # Link for this account.
228          &quot;id&quot;: &quot;A String&quot;, # Account ID.
229          &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
230          &quot;name&quot;: &quot;A String&quot;, # Account name.
231        },
232        &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
233          &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
234          &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
235          &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
236          &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
237          &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
238          &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
239          &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
240        },
241        &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
242          &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
243          &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
244          &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
245          &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
246          &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
247          &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
248        },
249      },
250      &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
251      &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
252      &quot;permissions&quot;: { # Permissions the user has for this entity.
253        &quot;effective&quot;: [ # Effective permissions represent all the permissions that a user has for this entity. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent entity. Effective permissions are read-only.
254          &quot;A String&quot;,
255        ],
256        &quot;local&quot;: [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable.
257          &quot;A String&quot;,
258        ],
259      },
260      &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
261      &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
262        &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
263        &quot;id&quot;: &quot;A String&quot;, # User ID.
264        &quot;kind&quot;: &quot;analytics#userRef&quot;,
265      },
266    },
267  ],
268  &quot;itemsPerPage&quot;: 42, # The maximum number of entries the response can contain, regardless of the actual number of entries returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
269  &quot;kind&quot;: &quot;analytics#entityUserLinks&quot;, # Collection type.
270  &quot;nextLink&quot;: &quot;A String&quot;, # Next link for this account collection.
271  &quot;previousLink&quot;: &quot;A String&quot;, # Previous link for this account collection.
272  &quot;startIndex&quot;: 42, # The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.
273  &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
274}</pre>
275</div>
276
277<div class="method">
278    <code class="details" id="update">update(accountId, linkId, body=None)</code>
279  <pre>Updates permissions for an existing user on the given account.
280
281Args:
282  accountId: string, Account ID to update the account-user link for. (required)
283  linkId: string, Link ID to update the account-user link for. (required)
284  body: object, The request body.
285    The object takes the form of:
286
287{ # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
288  &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
289    &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
290      &quot;href&quot;: &quot;A String&quot;, # Link for this account.
291      &quot;id&quot;: &quot;A String&quot;, # Account ID.
292      &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
293      &quot;name&quot;: &quot;A String&quot;, # Account name.
294    },
295    &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
296      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
297      &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
298      &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
299      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
300      &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
301      &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
302      &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
303    },
304    &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
305      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
306      &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
307      &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
308      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
309      &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
310      &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
311    },
312  },
313  &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
314  &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
315  &quot;permissions&quot;: { # Permissions the user has for this entity.
316    &quot;effective&quot;: [ # Effective permissions represent all the permissions that a user has for this entity. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent entity. Effective permissions are read-only.
317      &quot;A String&quot;,
318    ],
319    &quot;local&quot;: [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable.
320      &quot;A String&quot;,
321    ],
322  },
323  &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
324  &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
325    &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
326    &quot;id&quot;: &quot;A String&quot;, # User ID.
327    &quot;kind&quot;: &quot;analytics#userRef&quot;,
328  },
329}
330
331
332Returns:
333  An object of the form:
334
335    { # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
336  &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
337    &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
338      &quot;href&quot;: &quot;A String&quot;, # Link for this account.
339      &quot;id&quot;: &quot;A String&quot;, # Account ID.
340      &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
341      &quot;name&quot;: &quot;A String&quot;, # Account name.
342    },
343    &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
344      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
345      &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
346      &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
347      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
348      &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
349      &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
350      &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
351    },
352    &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
353      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
354      &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
355      &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
356      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
357      &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
358      &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
359    },
360  },
361  &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
362  &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
363  &quot;permissions&quot;: { # Permissions the user has for this entity.
364    &quot;effective&quot;: [ # Effective permissions represent all the permissions that a user has for this entity. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent entity. Effective permissions are read-only.
365      &quot;A String&quot;,
366    ],
367    &quot;local&quot;: [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable.
368      &quot;A String&quot;,
369    ],
370  },
371  &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
372  &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
373    &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
374    &quot;id&quot;: &quot;A String&quot;, # User ID.
375    &quot;kind&quot;: &quot;analytics#userRef&quot;,
376  },
377}</pre>
378</div>
379
380</body></html>