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.profileUserLinks.html">profileUserLinks</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, webPropertyId, profileId, linkId)</a></code></p>
82<p class="firstline">Removes a user from the given view (profile).</p>
83<p class="toc_element">
84  <code><a href="#insert">insert(accountId, webPropertyId, profileId, body=None)</a></code></p>
85<p class="firstline">Adds a new user to the given view (profile).</p>
86<p class="toc_element">
87  <code><a href="#list">list(accountId, webPropertyId, profileId, max_results=None, start_index=None)</a></code></p>
88<p class="firstline">Lists profile-user links for a given view (profile).</p>
89<p class="toc_element">
90  <code><a href="#update">update(accountId, webPropertyId, profileId, linkId, body=None)</a></code></p>
91<p class="firstline">Updates permissions for an existing user on the given view (profile).</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, webPropertyId, profileId, linkId)</code>
100  <pre>Removes a user from the given view (profile).
101
102Args:
103  accountId: string, Account ID to delete the user link for. (required)
104  webPropertyId: string, Web Property ID to delete the user link for. (required)
105  profileId: string, View (Profile) ID to delete the user link for. (required)
106  linkId: string, Link ID to delete the user link for. (required)
107</pre>
108</div>
109
110<div class="method">
111    <code class="details" id="insert">insert(accountId, webPropertyId, profileId, body=None)</code>
112  <pre>Adds a new user to the given view (profile).
113
114Args:
115  accountId: string, Account ID to create the user link for. (required)
116  webPropertyId: string, Web Property ID to create the user link for. (required)
117  profileId: string, View (Profile) ID to create the user link for. (required)
118  body: object, The request body.
119    The object takes the form of:
120
121{ # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
122  &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
123    &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
124      &quot;href&quot;: &quot;A String&quot;, # Link for this account.
125      &quot;id&quot;: &quot;A String&quot;, # Account ID.
126      &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
127      &quot;name&quot;: &quot;A String&quot;, # Account name.
128    },
129    &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
130      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
131      &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
132      &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
133      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
134      &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
135      &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
136      &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
137    },
138    &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
139      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
140      &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
141      &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
142      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
143      &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
144      &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
145    },
146  },
147  &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
148  &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
149  &quot;permissions&quot;: { # Permissions the user has for this entity.
150    &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.
151      &quot;A String&quot;,
152    ],
153    &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.
154      &quot;A String&quot;,
155    ],
156  },
157  &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
158  &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
159    &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
160    &quot;id&quot;: &quot;A String&quot;, # User ID.
161    &quot;kind&quot;: &quot;analytics#userRef&quot;,
162  },
163}
164
165
166Returns:
167  An object of the form:
168
169    { # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
170  &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
171    &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
172      &quot;href&quot;: &quot;A String&quot;, # Link for this account.
173      &quot;id&quot;: &quot;A String&quot;, # Account ID.
174      &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
175      &quot;name&quot;: &quot;A String&quot;, # Account name.
176    },
177    &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
178      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
179      &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
180      &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
181      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
182      &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
183      &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
184      &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
185    },
186    &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
187      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
188      &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
189      &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
190      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
191      &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
192      &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
193    },
194  },
195  &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
196  &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
197  &quot;permissions&quot;: { # Permissions the user has for this entity.
198    &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.
199      &quot;A String&quot;,
200    ],
201    &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.
202      &quot;A String&quot;,
203    ],
204  },
205  &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
206  &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
207    &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
208    &quot;id&quot;: &quot;A String&quot;, # User ID.
209    &quot;kind&quot;: &quot;analytics#userRef&quot;,
210  },
211}</pre>
212</div>
213
214<div class="method">
215    <code class="details" id="list">list(accountId, webPropertyId, profileId, max_results=None, start_index=None)</code>
216  <pre>Lists profile-user links for a given view (profile).
217
218Args:
219  accountId: string, Account ID which the given view (profile) belongs to. (required)
220  webPropertyId: string, Web Property ID which the given view (profile) belongs to. Can either be a specific web property ID or &#x27;~all&#x27;, which refers to all the web properties that user has access to. (required)
221  profileId: string, View (Profile) ID to retrieve the profile-user links for. Can either be a specific profile ID or &#x27;~all&#x27;, which refers to all the profiles that user has access to. (required)
222  max_results: integer, The maximum number of profile-user links to include in this response.
223  start_index: integer, An index of the first profile-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
224
225Returns:
226  An object of the form:
227
228    { # An entity user link collection provides a list of Analytics ACL links Each resource in this collection corresponds to a single link.
229  &quot;items&quot;: [ # A list of entity user links.
230    { # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
231      &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
232        &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
233          &quot;href&quot;: &quot;A String&quot;, # Link for this account.
234          &quot;id&quot;: &quot;A String&quot;, # Account ID.
235          &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
236          &quot;name&quot;: &quot;A String&quot;, # Account name.
237        },
238        &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
239          &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
240          &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
241          &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
242          &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
243          &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
244          &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
245          &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
246        },
247        &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
248          &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
249          &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
250          &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
251          &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
252          &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
253          &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
254        },
255      },
256      &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
257      &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
258      &quot;permissions&quot;: { # Permissions the user has for this entity.
259        &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.
260          &quot;A String&quot;,
261        ],
262        &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.
263          &quot;A String&quot;,
264        ],
265      },
266      &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
267      &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
268        &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
269        &quot;id&quot;: &quot;A String&quot;, # User ID.
270        &quot;kind&quot;: &quot;analytics#userRef&quot;,
271      },
272    },
273  ],
274  &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.
275  &quot;kind&quot;: &quot;analytics#entityUserLinks&quot;, # Collection type.
276  &quot;nextLink&quot;: &quot;A String&quot;, # Next link for this account collection.
277  &quot;previousLink&quot;: &quot;A String&quot;, # Previous link for this account collection.
278  &quot;startIndex&quot;: 42, # The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.
279  &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
280}</pre>
281</div>
282
283<div class="method">
284    <code class="details" id="update">update(accountId, webPropertyId, profileId, linkId, body=None)</code>
285  <pre>Updates permissions for an existing user on the given view (profile).
286
287Args:
288  accountId: string, Account ID to update the user link for. (required)
289  webPropertyId: string, Web Property ID to update the user link for. (required)
290  profileId: string, View (Profile ID) to update the user link for. (required)
291  linkId: string, Link ID to update the user link for. (required)
292  body: object, The request body.
293    The object takes the form of:
294
295{ # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
296  &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
297    &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
298      &quot;href&quot;: &quot;A String&quot;, # Link for this account.
299      &quot;id&quot;: &quot;A String&quot;, # Account ID.
300      &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
301      &quot;name&quot;: &quot;A String&quot;, # Account name.
302    },
303    &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
304      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
305      &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
306      &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
307      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
308      &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
309      &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
310      &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
311    },
312    &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
313      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
314      &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
315      &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
316      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
317      &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
318      &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
319    },
320  },
321  &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
322  &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
323  &quot;permissions&quot;: { # Permissions the user has for this entity.
324    &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.
325      &quot;A String&quot;,
326    ],
327    &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.
328      &quot;A String&quot;,
329    ],
330  },
331  &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
332  &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
333    &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
334    &quot;id&quot;: &quot;A String&quot;, # User ID.
335    &quot;kind&quot;: &quot;analytics#userRef&quot;,
336  },
337}
338
339
340Returns:
341  An object of the form:
342
343    { # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
344  &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
345    &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
346      &quot;href&quot;: &quot;A String&quot;, # Link for this account.
347      &quot;id&quot;: &quot;A String&quot;, # Account ID.
348      &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
349      &quot;name&quot;: &quot;A String&quot;, # Account name.
350    },
351    &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
352      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
353      &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
354      &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
355      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
356      &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
357      &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
358      &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
359    },
360    &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
361      &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
362      &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
363      &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
364      &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
365      &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
366      &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
367    },
368  },
369  &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
370  &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
371  &quot;permissions&quot;: { # Permissions the user has for this entity.
372    &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.
373      &quot;A String&quot;,
374    ],
375    &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.
376      &quot;A String&quot;,
377    ],
378  },
379  &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
380  &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
381    &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
382    &quot;id&quot;: &quot;A String&quot;, # User ID.
383    &quot;kind&quot;: &quot;analytics#userRef&quot;,
384  },
385}</pre>
386</div>
387
388</body></html>