blob: c94258d93a94acc78e51f043b76c1516de5b2e7d [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.accountUserLinks.html">accountUserLinks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(accountId, linkId)</a></code></p>
79<p class="firstline">Removes a user from the given account.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#insert">insert(accountId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Adds a new user to the given account.</p>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#list">list(accountId, start_index=None, max_results=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Lists account-user links for a given account.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#update">update(accountId, 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 account.</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="delete">delete(accountId, linkId)</code>
92 <pre>Removes a user from the given account.
93
94Args:
95 accountId: string, Account ID to delete the user link for. (required)
96 linkId: string, Link ID to delete the user link for. (required)
97</pre>
98</div>
99
100<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code class="details" id="insert">insert(accountId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400102 <pre>Adds a new user to the given account.
103
104Args:
105 accountId: string, Account ID to create the user link for. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400107 The object takes the form of:
108
109{ # 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 -0700110 &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
Bu Sun Kim65020912020-05-20 12:08:20 -0700111 &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
112 &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
113 &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700114 &quot;id&quot;: &quot;A String&quot;, # Account ID.
115 &quot;href&quot;: &quot;A String&quot;, # Link for this account.
116 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700117 &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
John Asmuth614db982014-04-24 15:46:26 -0400118 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700119 &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
121 &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
122 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
123 &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
124 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700125 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
John Asmuth614db982014-04-24 15:46:26 -0400126 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
129 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
130 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
131 &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
132 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
133 &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700134 &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 -0400135 },
136 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 &quot;permissions&quot;: { # Permissions the user has for this entity.
138 &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.
139 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400140 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &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.
142 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400143 ],
144 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700146 &quot;id&quot;: &quot;A String&quot;, # User ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
148 &quot;kind&quot;: &quot;analytics#userRef&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 },
150 &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400151 }
152
153
154Returns:
155 An object of the form:
156
157 { # 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 -0700158 &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
Bu Sun Kim65020912020-05-20 12:08:20 -0700159 &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
160 &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
161 &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;id&quot;: &quot;A String&quot;, # Account ID.
163 &quot;href&quot;: &quot;A String&quot;, # Link for this account.
164 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700165 &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
John Asmuth614db982014-04-24 15:46:26 -0400166 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
169 &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
170 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
171 &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
172 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700173 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
John Asmuth614db982014-04-24 15:46:26 -0400174 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
177 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
178 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
179 &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
180 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
181 &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700182 &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 -0400183 },
184 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 &quot;permissions&quot;: { # Permissions the user has for this entity.
186 &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.
187 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400188 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &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.
190 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400191 ],
192 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700193 &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700194 &quot;id&quot;: &quot;A String&quot;, # User ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
196 &quot;kind&quot;: &quot;analytics#userRef&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 },
198 &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400199 }</pre>
200</div>
201
202<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 <code class="details" id="list">list(accountId, start_index=None, max_results=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400204 <pre>Lists account-user links for a given account.
205
206Args:
207 accountId: string, Account ID to retrieve the user links for. (required)
John Asmuth614db982014-04-24 15:46:26 -0400208 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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700209 max_results: integer, The maximum number of account-user links to include in this response.
John Asmuth614db982014-04-24 15:46:26 -0400210
211Returns:
212 An object of the form:
213
214 { # 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 -0700215 &quot;nextLink&quot;: &quot;A String&quot;, # Next link for this account collection.
216 &quot;previousLink&quot;: &quot;A String&quot;, # Previous link for this account collection.
217 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
218 &quot;items&quot;: [ # A list of entity user links.
John Asmuth614db982014-04-24 15:46:26 -0400219 { # 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 -0700220 &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
Bu Sun Kim65020912020-05-20 12:08:20 -0700221 &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
222 &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
223 &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 &quot;id&quot;: &quot;A String&quot;, # Account ID.
225 &quot;href&quot;: &quot;A String&quot;, # Link for this account.
226 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700227 &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
John Asmuth614db982014-04-24 15:46:26 -0400228 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
231 &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
232 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
233 &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
234 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700235 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
John Asmuth614db982014-04-24 15:46:26 -0400236 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
239 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
240 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
241 &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700244 &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 -0400245 },
246 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 &quot;permissions&quot;: { # Permissions the user has for this entity.
248 &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.
249 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400250 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &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.
252 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400253 ],
254 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700256 &quot;id&quot;: &quot;A String&quot;, # User ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
258 &quot;kind&quot;: &quot;analytics#userRef&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700259 },
260 &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400261 },
262 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700263 &quot;startIndex&quot;: 42, # The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.
264 &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.
265 &quot;kind&quot;: &quot;analytics#entityUserLinks&quot;, # Collection type.
John Asmuth614db982014-04-24 15:46:26 -0400266 }</pre>
267</div>
268
269<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700270 <code class="details" id="update">update(accountId, linkId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400271 <pre>Updates permissions for an existing user on the given account.
272
273Args:
274 accountId: string, Account ID to update the account-user link for. (required)
275 linkId: string, Link ID to update the account-user link for. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700276 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400277 The object takes the form of:
278
279{ # 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 -0700280 &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
282 &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
283 &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 &quot;id&quot;: &quot;A String&quot;, # Account ID.
285 &quot;href&quot;: &quot;A String&quot;, # Link for this account.
286 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700287 &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
John Asmuth614db982014-04-24 15:46:26 -0400288 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
291 &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
292 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
293 &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
294 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700295 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
John Asmuth614db982014-04-24 15:46:26 -0400296 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
299 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
300 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
301 &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
302 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
303 &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700304 &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 -0400305 },
306 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &quot;permissions&quot;: { # Permissions the user has for this entity.
308 &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.
309 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400310 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 &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.
312 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400313 ],
314 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700316 &quot;id&quot;: &quot;A String&quot;, # User ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
318 &quot;kind&quot;: &quot;analytics#userRef&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700319 },
320 &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400321 }
322
323
324Returns:
325 An object of the form:
326
327 { # 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 -0700328 &quot;id&quot;: &quot;A String&quot;, # Entity user link ID
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 &quot;kind&quot;: &quot;analytics#entityUserLink&quot;, # Resource type for entity user link.
330 &quot;entity&quot;: { # Entity for this link. It can be an account, a web property, or a view (profile).
331 &quot;accountRef&quot;: { # JSON template for a linked account. # Account for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 &quot;id&quot;: &quot;A String&quot;, # Account ID.
333 &quot;href&quot;: &quot;A String&quot;, # Link for this account.
334 &quot;name&quot;: &quot;A String&quot;, # Account name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700335 &quot;kind&quot;: &quot;analytics#accountRef&quot;, # Analytics account reference.
John Asmuth614db982014-04-24 15:46:26 -0400336 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700337 &quot;webPropertyRef&quot;: { # JSON template for a web property reference. # Web property for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
339 &quot;href&quot;: &quot;A String&quot;, # Link for this web property.
340 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
341 &quot;kind&quot;: &quot;analytics#webPropertyRef&quot;, # Analytics web property reference.
342 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700343 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
John Asmuth614db982014-04-24 15:46:26 -0400344 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;profileRef&quot;: { # JSON template for a linked view (profile). # View (Profile) for this link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700346 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
347 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
348 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
349 &quot;href&quot;: &quot;A String&quot;, # Link for this view (profile).
350 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
351 &quot;kind&quot;: &quot;analytics#profileRef&quot;, # Analytics view (profile) reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700352 &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 -0400353 },
354 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700355 &quot;permissions&quot;: { # Permissions the user has for this entity.
356 &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.
357 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400358 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700359 &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.
360 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400361 ],
362 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700363 &quot;userRef&quot;: { # JSON template for a user reference. # User reference.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700364 &quot;id&quot;: &quot;A String&quot;, # User ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700365 &quot;email&quot;: &quot;A String&quot;, # Email ID of this user.
366 &quot;kind&quot;: &quot;analytics#userRef&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 },
368 &quot;selfLink&quot;: &quot;A String&quot;, # Self link for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400369 }</pre>
370</div>
371
372</body></html>