blob: c9c5e70cdb568b079c557aa8279b1e64e9679960 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<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.webpropertyUserLinks.html">webpropertyUserLinks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(accountId, webPropertyId, linkId)</a></code></p>
79<p class="firstline">Removes a user from the given web property.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#insert">insert(accountId, webPropertyId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Adds a new user to the given web property.</p>
83<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070084 <code><a href="#list">list(accountId, webPropertyId, max_results=None, start_index=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Lists webProperty-user links for a given web property.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#update">update(accountId, webPropertyId, linkId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<p class="firstline">Updates permissions for an existing user on the given web property.</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="delete">delete(accountId, webPropertyId, linkId)</code>
92 <pre>Removes a user from the given web property.
93
94Args:
95 accountId: string, Account ID to delete the user link for. (required)
96 webPropertyId: string, Web Property ID to delete the user link for. (required)
97 linkId: string, Link ID to delete the user link for. (required)
98</pre>
99</div>
100
101<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code class="details" id="insert">insert(accountId, webPropertyId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400103 <pre>Adds a new user to the given web property.
104
105Args:
106 accountId: string, Account ID to create the user link for. (required)
107 webPropertyId: string, Web Property ID to create the user link for. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400109 The object takes the form of:
110
111{ # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700112 &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
114 &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
115 &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700116 &quot;id&quot;: &quot;A String&quot;, # Account ID.
117 &quot;href&quot;: &quot;A String&quot;, # Link for this account.
118 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700119 &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
John Asmuth614db982014-04-24 15:46:26 -0400120 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700121 &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
123 &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
124 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
125 &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
126 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700127 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
John Asmuth614db982014-04-24 15:46:26 -0400128 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
131 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
132 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
133 &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
134 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
135 &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700136 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
John Asmuth614db982014-04-24 15:46:26 -0400137 },
138 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700139 &quot;permissions&quot;: { # Permissions the user has for this entity.
140 &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.
141 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400142 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 &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.
144 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400145 ],
146 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700148 &quot;id&quot;: &quot;A String&quot;, # User ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
150 &quot;kind&quot;: &quot;analytics#userRef&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 },
152 &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400153 }
154
155
156Returns:
157 An object of the form:
158
159 { # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700160 &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
162 &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
163 &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 &quot;id&quot;: &quot;A String&quot;, # Account ID.
165 &quot;href&quot;: &quot;A String&quot;, # Link for this account.
166 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700167 &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
John Asmuth614db982014-04-24 15:46:26 -0400168 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700169 &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
171 &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
172 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
173 &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
174 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700175 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
John Asmuth614db982014-04-24 15:46:26 -0400176 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
179 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
180 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
181 &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
182 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
183 &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700184 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
John Asmuth614db982014-04-24 15:46:26 -0400185 },
186 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700187 &quot;permissions&quot;: { # Permissions the user has for this entity.
188 &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.
189 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400190 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &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.
192 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400193 ],
194 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700196 &quot;id&quot;: &quot;A String&quot;, # User ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
198 &quot;kind&quot;: &quot;analytics#userRef&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700199 },
200 &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400201 }</pre>
202</div>
203
204<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700205 <code class="details" id="list">list(accountId, webPropertyId, max_results=None, start_index=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400206 <pre>Lists webProperty-user links for a given web property.
207
208Args:
209 accountId: string, Account ID which the given web property belongs to. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 webPropertyId: string, Web Property ID for the webProperty-user links to retrieve. 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)
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 max_results: integer, The maximum number of webProperty-user Links to include in this response.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700212 start_index: integer, An index of the first webProperty-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
John Asmuth614db982014-04-24 15:46:26 -0400213
214Returns:
215 An object of the form:
216
217 { # An entity user link collection provides a list of Analytics ACL links Each resource in this collection corresponds to a single link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 &quot;nextLink&quot;: &quot;A String&quot;, # Next link for this account collection.
219 &quot;previousLink&quot;: &quot;A String&quot;, # Previous link for this account collection.
220 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
221 &quot;items&quot;: [ # A list of entity user links.
John Asmuth614db982014-04-24 15:46:26 -0400222 { # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700223 &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 &quot;id&quot;: &quot;A String&quot;, # Account ID.
228 &quot;href&quot;: &quot;A String&quot;, # Link for this account.
229 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700230 &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
John Asmuth614db982014-04-24 15:46:26 -0400231 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
234 &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
235 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
236 &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
237 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700238 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
John Asmuth614db982014-04-24 15:46:26 -0400239 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
242 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
243 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
244 &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
245 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
246 &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700247 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
John Asmuth614db982014-04-24 15:46:26 -0400248 },
249 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 &quot;permissions&quot;: { # Permissions the user has for this entity.
251 &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.
252 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400253 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &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.
255 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400256 ],
257 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700259 &quot;id&quot;: &quot;A String&quot;, # User ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
261 &quot;kind&quot;: &quot;analytics#userRef&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700262 },
263 &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400264 },
265 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700266 &quot;startIndex&quot;: 42, # The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.
267 &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.
268 &quot;kind&quot;: &quot;analytics#entityUserLinks&quot;, # Collection type.
John Asmuth614db982014-04-24 15:46:26 -0400269 }</pre>
270</div>
271
272<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700273 <code class="details" id="update">update(accountId, webPropertyId, linkId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400274 <pre>Updates permissions for an existing user on the given web property.
275
276Args:
277 accountId: string, Account ID to update the account-user link for. (required)
278 webPropertyId: string, Web property ID to update the account-user link for. (required)
279 linkId: string, Link ID to update the account-user link for. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700280 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400281 The object takes the form of:
282
283{ # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700284 &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
Bu Sun Kim65020912020-05-20 12:08:20 -0700285 &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
286 &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
287 &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700288 &quot;id&quot;: &quot;A String&quot;, # Account ID.
289 &quot;href&quot;: &quot;A String&quot;, # Link for this account.
290 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700291 &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
John Asmuth614db982014-04-24 15:46:26 -0400292 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
295 &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
296 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
297 &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
298 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700299 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
John Asmuth614db982014-04-24 15:46:26 -0400300 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700301 &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700302 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
303 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
304 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
305 &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
306 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
307 &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700308 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
John Asmuth614db982014-04-24 15:46:26 -0400309 },
310 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 &quot;permissions&quot;: { # Permissions the user has for this entity.
312 &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.
313 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400314 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &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.
316 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400317 ],
318 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700319 &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700320 &quot;id&quot;: &quot;A String&quot;, # User ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
322 &quot;kind&quot;: &quot;analytics#userRef&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700323 },
324 &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400325 }
326
327
328Returns:
329 An object of the form:
330
331 { # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700332 &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
334 &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
335 &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700336 &quot;id&quot;: &quot;A String&quot;, # Account ID.
337 &quot;href&quot;: &quot;A String&quot;, # Link for this account.
338 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700339 &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
John Asmuth614db982014-04-24 15:46:26 -0400340 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700342 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
343 &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
344 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
345 &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
346 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700347 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
John Asmuth614db982014-04-24 15:46:26 -0400348 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700350 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
351 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
352 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
353 &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
354 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
355 &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700356 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
John Asmuth614db982014-04-24 15:46:26 -0400357 },
358 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700359 &quot;permissions&quot;: { # Permissions the user has for this entity.
360 &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.
361 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400362 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700363 &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.
364 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400365 ],
366 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700368 &quot;id&quot;: &quot;A String&quot;, # User ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
370 &quot;kind&quot;: &quot;analytics#userRef&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 },
372 &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400373 }</pre>
374</div>
375
376</body></html>