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.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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 81 | <code><a href="#insert">insert(accountId, webPropertyId, 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 web property.</p> |
| 83 | <p class="toc_element"> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 84 | <code><a href="#list">list(accountId, webPropertyId, max_results=None, start_index=None)</a></code></p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 85 | <p class="firstline">Lists webProperty-user links for a given web property.</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, webPropertyId, 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 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 | |
| 94 | Args: |
| 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 102 | <code class="details" id="insert">insert(accountId, webPropertyId, body=None)</code> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 103 | <pre>Adds a new user to the given web property. |
| 104 | |
| 105 | Args: |
| 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 108 | body: object, The request body. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 109 | 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 Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 112 | "id": "A String", # Entity user link ID |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 113 | "kind": "analytics#entityUserLink", # Resource type for entity user link. |
| 114 | "entity": { # Entity for this link. It can be an account, a web property, or a view (profile). |
| 115 | "accountRef": { # JSON template for a linked account. # Account for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 116 | "id": "A String", # Account ID. |
| 117 | "href": "A String", # Link for this account. |
| 118 | "name": "A String", # Account name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 119 | "kind": "analytics#accountRef", # Analytics account reference. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 120 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 121 | "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] | 122 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 123 | "href": "A String", # Link for this web property. |
| 124 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 125 | "kind": "analytics#webPropertyRef", # Analytics web property reference. |
| 126 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 127 | "accountId": "A String", # Account ID to which this web property belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 128 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 129 | "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] | 130 | "name": "A String", # Name of this view (profile). |
| 131 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 132 | "id": "A String", # View (Profile) ID. |
| 133 | "href": "A String", # Link for this view (profile). |
| 134 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 135 | "kind": "analytics#profileRef", # Analytics view (profile) reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 136 | "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] | 137 | }, |
| 138 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 139 | "permissions": { # Permissions the user has for this entity. |
| 140 | "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. |
| 141 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 142 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 143 | "local": [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable. |
| 144 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 145 | ], |
| 146 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 147 | "userRef": { # JSON template for a user reference. # User reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 148 | "id": "A String", # User ID. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 149 | "email": "A String", # Email ID of this user. |
| 150 | "kind": "analytics#userRef", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 151 | }, |
| 152 | "selfLink": "A String", # Self link for this resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 153 | } |
| 154 | |
| 155 | |
| 156 | Returns: |
| 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 Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 160 | "id": "A String", # Entity user link ID |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 161 | "kind": "analytics#entityUserLink", # Resource type for entity user link. |
| 162 | "entity": { # Entity for this link. It can be an account, a web property, or a view (profile). |
| 163 | "accountRef": { # JSON template for a linked account. # Account for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 164 | "id": "A String", # Account ID. |
| 165 | "href": "A String", # Link for this account. |
| 166 | "name": "A String", # Account name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 167 | "kind": "analytics#accountRef", # Analytics account reference. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 168 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 169 | "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] | 170 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 171 | "href": "A String", # Link for this web property. |
| 172 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 173 | "kind": "analytics#webPropertyRef", # Analytics web property reference. |
| 174 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 175 | "accountId": "A String", # Account ID to which this web property belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 176 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 177 | "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] | 178 | "name": "A String", # Name of this view (profile). |
| 179 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 180 | "id": "A String", # View (Profile) ID. |
| 181 | "href": "A String", # Link for this view (profile). |
| 182 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 183 | "kind": "analytics#profileRef", # Analytics view (profile) reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 184 | "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] | 185 | }, |
| 186 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 187 | "permissions": { # Permissions the user has for this entity. |
| 188 | "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. |
| 189 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 190 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 191 | "local": [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable. |
| 192 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 193 | ], |
| 194 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 195 | "userRef": { # JSON template for a user reference. # User reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 196 | "id": "A String", # User ID. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 197 | "email": "A String", # Email ID of this user. |
| 198 | "kind": "analytics#userRef", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 199 | }, |
| 200 | "selfLink": "A String", # Self link for this resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 201 | }</pre> |
| 202 | </div> |
| 203 | |
| 204 | <div class="method"> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 205 | <code class="details" id="list">list(accountId, webPropertyId, max_results=None, start_index=None)</code> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 206 | <pre>Lists webProperty-user links for a given web property. |
| 207 | |
| 208 | Args: |
| 209 | accountId: string, Account ID which the given web property belongs to. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 210 | webPropertyId: string, Web Property ID for the webProperty-user links to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 211 | max_results: integer, The maximum number of webProperty-user Links to include in this response. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 212 | 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 Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 213 | |
| 214 | Returns: |
| 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 Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 218 | "nextLink": "A String", # Next link for this account collection. |
| 219 | "previousLink": "A String", # Previous link for this account collection. |
| 220 | "totalResults": 42, # The total number of results for the query, regardless of the number of results in the response. |
| 221 | "items": [ # A list of entity user links. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 222 | { # 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^] | 223 | "id": "A String", # Entity user link ID |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 224 | "kind": "analytics#entityUserLink", # Resource type for entity user link. |
| 225 | "entity": { # Entity for this link. It can be an account, a web property, or a view (profile). |
| 226 | "accountRef": { # JSON template for a linked account. # Account for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 227 | "id": "A String", # Account ID. |
| 228 | "href": "A String", # Link for this account. |
| 229 | "name": "A String", # Account name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 230 | "kind": "analytics#accountRef", # Analytics account reference. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 231 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 232 | "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] | 233 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 234 | "href": "A String", # Link for this web property. |
| 235 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 236 | "kind": "analytics#webPropertyRef", # Analytics web property reference. |
| 237 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 238 | "accountId": "A String", # Account ID to which this web property belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 239 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 240 | "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] | 241 | "name": "A String", # Name of this view (profile). |
| 242 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 243 | "id": "A String", # View (Profile) ID. |
| 244 | "href": "A String", # Link for this view (profile). |
| 245 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 246 | "kind": "analytics#profileRef", # Analytics view (profile) reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 247 | "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] | 248 | }, |
| 249 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 250 | "permissions": { # Permissions the user has for this entity. |
| 251 | "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. |
| 252 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 253 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 254 | "local": [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable. |
| 255 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 256 | ], |
| 257 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 258 | "userRef": { # JSON template for a user reference. # User reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 259 | "id": "A String", # User ID. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 260 | "email": "A String", # Email ID of this user. |
| 261 | "kind": "analytics#userRef", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 262 | }, |
| 263 | "selfLink": "A String", # Self link for this resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 264 | }, |
| 265 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 266 | "startIndex": 42, # The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter. |
| 267 | "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. |
| 268 | "kind": "analytics#entityUserLinks", # Collection type. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 269 | }</pre> |
| 270 | </div> |
| 271 | |
| 272 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 273 | <code class="details" id="update">update(accountId, webPropertyId, linkId, body=None)</code> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 274 | <pre>Updates permissions for an existing user on the given web property. |
| 275 | |
| 276 | Args: |
| 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 280 | body: object, The request body. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 281 | 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 Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 284 | "id": "A String", # Entity user link ID |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 285 | "kind": "analytics#entityUserLink", # Resource type for entity user link. |
| 286 | "entity": { # Entity for this link. It can be an account, a web property, or a view (profile). |
| 287 | "accountRef": { # JSON template for a linked account. # Account for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 288 | "id": "A String", # Account ID. |
| 289 | "href": "A String", # Link for this account. |
| 290 | "name": "A String", # Account name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 291 | "kind": "analytics#accountRef", # Analytics account reference. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 292 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 293 | "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] | 294 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 295 | "href": "A String", # Link for this web property. |
| 296 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 297 | "kind": "analytics#webPropertyRef", # Analytics web property reference. |
| 298 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 299 | "accountId": "A String", # Account ID to which this web property belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 300 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 301 | "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] | 302 | "name": "A String", # Name of this view (profile). |
| 303 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 304 | "id": "A String", # View (Profile) ID. |
| 305 | "href": "A String", # Link for this view (profile). |
| 306 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 307 | "kind": "analytics#profileRef", # Analytics view (profile) reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 308 | "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] | 309 | }, |
| 310 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 311 | "permissions": { # Permissions the user has for this entity. |
| 312 | "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. |
| 313 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 314 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 315 | "local": [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable. |
| 316 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 317 | ], |
| 318 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 319 | "userRef": { # JSON template for a user reference. # User reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 320 | "id": "A String", # User ID. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 321 | "email": "A String", # Email ID of this user. |
| 322 | "kind": "analytics#userRef", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 323 | }, |
| 324 | "selfLink": "A String", # Self link for this resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 325 | } |
| 326 | |
| 327 | |
| 328 | Returns: |
| 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 Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 332 | "id": "A String", # Entity user link ID |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 333 | "kind": "analytics#entityUserLink", # Resource type for entity user link. |
| 334 | "entity": { # Entity for this link. It can be an account, a web property, or a view (profile). |
| 335 | "accountRef": { # JSON template for a linked account. # Account for this link. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 336 | "id": "A String", # Account ID. |
| 337 | "href": "A String", # Link for this account. |
| 338 | "name": "A String", # Account name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 339 | "kind": "analytics#accountRef", # Analytics account reference. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 340 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 341 | "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] | 342 | "id": "A String", # Web property ID of the form UA-XXXXX-YY. |
| 343 | "href": "A String", # Link for this web property. |
| 344 | "internalWebPropertyId": "A String", # Internal ID for this web property. |
| 345 | "kind": "analytics#webPropertyRef", # Analytics web property reference. |
| 346 | "name": "A String", # Name of this web property. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 347 | "accountId": "A String", # Account ID to which this web property belongs. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 348 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 349 | "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] | 350 | "name": "A String", # Name of this view (profile). |
| 351 | "accountId": "A String", # Account ID to which this view (profile) belongs. |
| 352 | "id": "A String", # View (Profile) ID. |
| 353 | "href": "A String", # Link for this view (profile). |
| 354 | "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs. |
| 355 | "kind": "analytics#profileRef", # Analytics view (profile) reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 356 | "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] | 357 | }, |
| 358 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 359 | "permissions": { # Permissions the user has for this entity. |
| 360 | "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. |
| 361 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 362 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 363 | "local": [ # Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable. |
| 364 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 365 | ], |
| 366 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 367 | "userRef": { # JSON template for a user reference. # User reference. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 368 | "id": "A String", # User ID. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 369 | "email": "A String", # Email ID of this user. |
| 370 | "kind": "analytics#userRef", |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 371 | }, |
| 372 | "selfLink": "A String", # Self link for this resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 373 | }</pre> |
| 374 | </div> |
| 375 | |
| 376 | </body></html> |