John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 81 | <code><a href="#insert">insert(accountId, body=None)</a></code></p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 82 | <p class="firstline">Adds a new user to the given account.</p> |
| 83 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 84 | <code><a href="#list">list(accountId, start_index=None, max_results=None)</a></code></p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 85 | <p class="firstline">Lists account-user links for a given account.</p> |
| 86 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 87 | <code><a href="#update">update(accountId, linkId, body=None)</a></code></p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 88 | <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 | |
| 94 | Args: |
| 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 101 | <code class="details" id="insert">insert(accountId, body=None)</code> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 102 | <pre>Adds a new user to the given account. |
| 103 | |
| 104 | Args: |
| 105 | accountId: string, Account ID to create the user link for. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 106 | body: object, The request body. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 107 | 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 Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 110 | "id": "A String", # Entity user link ID |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 111 | "kind": "analytics#entityUserLink", # Resource type for entity user link. |
| 112 | "entity": { # Entity for this link. It can be an account, a web property, or a view (profile). |
| 113 | "accountRef": { # JSON template for a linked account. # Account for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 114 | "id": "A String", # Account ID. |
| 115 | "href": "A String", # Link for this account. |
| 116 | "name": "A String", # Account name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 117 | "kind": "analytics#accountRef", # Analytics account reference. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 118 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 119 | "webPropertyRef": { # JSON template for a web property reference. # Web property for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 120 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 121 | "href": "A String", # Link for this web property. |
| 122 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 123 | "kind": "analytics#webPropertyRef", # Analytics web property reference. |
| 124 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 125 | "accountId": "A String", # Account ID to which this web property belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 126 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 127 | "profileRef": { # JSON template for a linked view (profile). # View (Profile) for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 128 | "name": "A String", # Name of this view (profile). |
| 129 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 130 | "id": "A String", # View (Profile) ID. |
| 131 | "href": "A String", # Link for this view (profile). |
| 132 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 133 | "kind": "analytics#profileRef", # Analytics view (profile) reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 134 | "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 135 | }, |
| 136 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 137 | "permissions": { # Permissions the user has for this entity. |
| 138 | "effective": [ # 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 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 140 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 141 | "local": [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable. |
| 142 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 143 | ], |
| 144 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 145 | "userRef": { # JSON template for a user reference. # User reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 146 | "id": "A String", # User ID. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 147 | "email": "A String", # Email ID of this user. |
| 148 | "kind": "analytics#userRef", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 149 | }, |
| 150 | "selfLink": "A String", # Self link for this resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 151 | } |
| 152 | |
| 153 | |
| 154 | Returns: |
| 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 Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 158 | "id": "A String", # Entity user link ID |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 159 | "kind": "analytics#entityUserLink", # Resource type for entity user link. |
| 160 | "entity": { # Entity for this link. It can be an account, a web property, or a view (profile). |
| 161 | "accountRef": { # JSON template for a linked account. # Account for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 162 | "id": "A String", # Account ID. |
| 163 | "href": "A String", # Link for this account. |
| 164 | "name": "A String", # Account name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 165 | "kind": "analytics#accountRef", # Analytics account reference. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 166 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 167 | "webPropertyRef": { # JSON template for a web property reference. # Web property for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 168 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 169 | "href": "A String", # Link for this web property. |
| 170 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 171 | "kind": "analytics#webPropertyRef", # Analytics web property reference. |
| 172 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 173 | "accountId": "A String", # Account ID to which this web property belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 174 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 175 | "profileRef": { # JSON template for a linked view (profile). # View (Profile) for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 176 | "name": "A String", # Name of this view (profile). |
| 177 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 178 | "id": "A String", # View (Profile) ID. |
| 179 | "href": "A String", # Link for this view (profile). |
| 180 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 181 | "kind": "analytics#profileRef", # Analytics view (profile) reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 182 | "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 183 | }, |
| 184 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 185 | "permissions": { # Permissions the user has for this entity. |
| 186 | "effective": [ # 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 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 188 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 189 | "local": [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable. |
| 190 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 191 | ], |
| 192 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 193 | "userRef": { # JSON template for a user reference. # User reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 194 | "id": "A String", # User ID. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 195 | "email": "A String", # Email ID of this user. |
| 196 | "kind": "analytics#userRef", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 197 | }, |
| 198 | "selfLink": "A String", # Self link for this resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 199 | }</pre> |
| 200 | </div> |
| 201 | |
| 202 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 203 | <code class="details" id="list">list(accountId, start_index=None, max_results=None)</code> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 204 | <pre>Lists account-user links for a given account. |
| 205 | |
| 206 | Args: |
| 207 | accountId: string, Account ID to retrieve the user links for. (required) |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 208 | 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 Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 209 | max_results: integer, The maximum number of account-user links to include in this response. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 210 | |
| 211 | Returns: |
| 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 Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 215 | "nextLink": "A String", # Next link for this account collection. |
| 216 | "previousLink": "A String", # Previous link for this account collection. |
| 217 | "totalResults": 42, # The total number of results for the query, regardless of the number of results in the response. |
| 218 | "items": [ # A list of entity user links. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 219 | { # JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 220 | "id": "A String", # Entity user link ID |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 221 | "kind": "analytics#entityUserLink", # Resource type for entity user link. |
| 222 | "entity": { # Entity for this link. It can be an account, a web property, or a view (profile). |
| 223 | "accountRef": { # JSON template for a linked account. # Account for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 224 | "id": "A String", # Account ID. |
| 225 | "href": "A String", # Link for this account. |
| 226 | "name": "A String", # Account name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 227 | "kind": "analytics#accountRef", # Analytics account reference. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 228 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 229 | "webPropertyRef": { # JSON template for a web property reference. # Web property for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 230 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 231 | "href": "A String", # Link for this web property. |
| 232 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 233 | "kind": "analytics#webPropertyRef", # Analytics web property reference. |
| 234 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 235 | "accountId": "A String", # Account ID to which this web property belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 236 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 237 | "profileRef": { # JSON template for a linked view (profile). # View (Profile) for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 238 | "name": "A String", # Name of this view (profile). |
| 239 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 240 | "id": "A String", # View (Profile) ID. |
| 241 | "href": "A String", # Link for this view (profile). |
| 242 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 243 | "kind": "analytics#profileRef", # Analytics view (profile) reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 244 | "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 245 | }, |
| 246 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 247 | "permissions": { # Permissions the user has for this entity. |
| 248 | "effective": [ # 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 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 250 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 251 | "local": [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable. |
| 252 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 253 | ], |
| 254 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 255 | "userRef": { # JSON template for a user reference. # User reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 256 | "id": "A String", # User ID. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 257 | "email": "A String", # Email ID of this user. |
| 258 | "kind": "analytics#userRef", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 259 | }, |
| 260 | "selfLink": "A String", # Self link for this resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 261 | }, |
| 262 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 263 | "startIndex": 42, # The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter. |
| 264 | "itemsPerPage": 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 | "kind": "analytics#entityUserLinks", # Collection type. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 266 | }</pre> |
| 267 | </div> |
| 268 | |
| 269 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 270 | <code class="details" id="update">update(accountId, linkId, body=None)</code> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 271 | <pre>Updates permissions for an existing user on the given account. |
| 272 | |
| 273 | Args: |
| 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 276 | body: object, The request body. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 277 | 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 Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 280 | "id": "A String", # Entity user link ID |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 281 | "kind": "analytics#entityUserLink", # Resource type for entity user link. |
| 282 | "entity": { # Entity for this link. It can be an account, a web property, or a view (profile). |
| 283 | "accountRef": { # JSON template for a linked account. # Account for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 284 | "id": "A String", # Account ID. |
| 285 | "href": "A String", # Link for this account. |
| 286 | "name": "A String", # Account name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 287 | "kind": "analytics#accountRef", # Analytics account reference. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 288 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 289 | "webPropertyRef": { # JSON template for a web property reference. # Web property for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 290 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 291 | "href": "A String", # Link for this web property. |
| 292 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 293 | "kind": "analytics#webPropertyRef", # Analytics web property reference. |
| 294 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 295 | "accountId": "A String", # Account ID to which this web property belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 296 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 297 | "profileRef": { # JSON template for a linked view (profile). # View (Profile) for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 298 | "name": "A String", # Name of this view (profile). |
| 299 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 300 | "id": "A String", # View (Profile) ID. |
| 301 | "href": "A String", # Link for this view (profile). |
| 302 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 303 | "kind": "analytics#profileRef", # Analytics view (profile) reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 304 | "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 305 | }, |
| 306 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 307 | "permissions": { # Permissions the user has for this entity. |
| 308 | "effective": [ # 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 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 310 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 311 | "local": [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable. |
| 312 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 313 | ], |
| 314 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 315 | "userRef": { # JSON template for a user reference. # User reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 316 | "id": "A String", # User ID. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 317 | "email": "A String", # Email ID of this user. |
| 318 | "kind": "analytics#userRef", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 319 | }, |
| 320 | "selfLink": "A String", # Self link for this resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 321 | } |
| 322 | |
| 323 | |
| 324 | Returns: |
| 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 Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 328 | "id": "A String", # Entity user link ID |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 329 | "kind": "analytics#entityUserLink", # Resource type for entity user link. |
| 330 | "entity": { # Entity for this link. It can be an account, a web property, or a view (profile). |
| 331 | "accountRef": { # JSON template for a linked account. # Account for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 332 | "id": "A String", # Account ID. |
| 333 | "href": "A String", # Link for this account. |
| 334 | "name": "A String", # Account name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 335 | "kind": "analytics#accountRef", # Analytics account reference. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 336 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 337 | "webPropertyRef": { # JSON template for a web property reference. # Web property for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 338 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 339 | "href": "A String", # Link for this web property. |
| 340 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 341 | "kind": "analytics#webPropertyRef", # Analytics web property reference. |
| 342 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 343 | "accountId": "A String", # Account ID to which this web property belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 344 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 345 | "profileRef": { # JSON template for a linked view (profile). # View (Profile) for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 346 | "name": "A String", # Name of this view (profile). |
| 347 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 348 | "id": "A String", # View (Profile) ID. |
| 349 | "href": "A String", # Link for this view (profile). |
| 350 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 351 | "kind": "analytics#profileRef", # Analytics view (profile) reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 352 | "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 353 | }, |
| 354 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 355 | "permissions": { # Permissions the user has for this entity. |
| 356 | "effective": [ # 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 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 358 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 359 | "local": [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable. |
| 360 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 361 | ], |
| 362 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 363 | "userRef": { # JSON template for a user reference. # User reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 364 | "id": "A String", # User ID. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 365 | "email": "A String", # Email ID of this user. |
| 366 | "kind": "analytics#userRef", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 367 | }, |
| 368 | "selfLink": "A String", # Self link for this resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 369 | }</pre> |
| 370 | </div> |
| 371 | |
| 372 | </body></html> |