Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [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 | |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 75 | <h1><a href="androidenterprise_v1.html">Google Play EMM API</a> . <a href="androidenterprise_v1.users.html">users</a></h1> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 78 | <code><a href="#delete">delete(enterpriseId, userId, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 79 | <p class="firstline">Deleted an EMM-managed user.</p> |
| 80 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 81 | <code><a href="#generateAuthenticationToken">generateAuthenticationToken(enterpriseId, userId, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Generates an authentication token which the device policy client can use to</p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 83 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 84 | <code><a href="#get">get(enterpriseId, userId, x__xgafv=None)</a></code></p> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 85 | <p class="firstline">Retrieves a user's details.</p> |
| 86 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 87 | <code><a href="#getAvailableProductSet">getAvailableProductSet(enterpriseId, userId, x__xgafv=None)</a></code></p> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 88 | <p class="firstline">Retrieves the set of products a user is entitled to access.</p> |
| 89 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 90 | <code><a href="#insert">insert(enterpriseId, body=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 91 | <p class="firstline">Creates a new EMM-managed user.</p> |
| 92 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 93 | <code><a href="#list">list(enterpriseId, email, x__xgafv=None)</a></code></p> |
| 94 | <p class="firstline">Looks up a user by primary email address.</p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 95 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 96 | <code><a href="#revokeDeviceAccess">revokeDeviceAccess(enterpriseId, userId, x__xgafv=None)</a></code></p> |
| 97 | <p class="firstline">Revokes access to all devices currently provisioned to the user. The user</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 98 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 99 | <code><a href="#setAvailableProductSet">setAvailableProductSet(enterpriseId, userId, body=None, x__xgafv=None)</a></code></p> |
| 100 | <p class="firstline">Modifies the set of products that a user is entitled to access (referred to</p> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 101 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 102 | <code><a href="#update">update(enterpriseId, userId, body=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 103 | <p class="firstline">Updates the details of an EMM-managed user.</p> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 104 | <h3>Method Details</h3> |
| 105 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 106 | <code class="details" id="delete">delete(enterpriseId, userId, x__xgafv=None)</code> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 107 | <pre>Deleted an EMM-managed user. |
| 108 | |
| 109 | Args: |
| 110 | enterpriseId: string, The ID of the enterprise. (required) |
| 111 | userId: string, The ID of the user. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 112 | x__xgafv: string, V1 error format. |
| 113 | Allowed values |
| 114 | 1 - v1 error format |
| 115 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 116 | </pre> |
| 117 | </div> |
| 118 | |
| 119 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 120 | <code class="details" id="generateAuthenticationToken">generateAuthenticationToken(enterpriseId, userId, x__xgafv=None)</code> |
| 121 | <pre>Generates an authentication token which the device policy client can use to |
| 122 | provision the given EMM-managed user account on a device. |
| 123 | The generated token is single-use and expires after a few minutes. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 124 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 125 | You can provision a maximum of 10 devices per user. |
| 126 | |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 127 | This call only works with EMM-managed accounts. |
| 128 | |
| 129 | Args: |
| 130 | enterpriseId: string, The ID of the enterprise. (required) |
| 131 | userId: string, The ID of the user. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 132 | x__xgafv: string, V1 error format. |
| 133 | Allowed values |
| 134 | 1 - v1 error format |
| 135 | 2 - v2 error format |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 136 | |
| 137 | Returns: |
| 138 | An object of the form: |
| 139 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 140 | { # An AuthenticationToken is used by the EMM's device policy client on a device |
| 141 | # to provision the given EMM-managed user on that device. |
| 142 | "token": "A String", # The authentication token to be passed to the device policy client on the |
| 143 | # device where it can be used to provision the account for which this token |
| 144 | # was generated. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 145 | }</pre> |
| 146 | </div> |
| 147 | |
| 148 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 149 | <code class="details" id="get">get(enterpriseId, userId, x__xgafv=None)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 150 | <pre>Retrieves a user's details. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 151 | |
| 152 | Args: |
| 153 | enterpriseId: string, The ID of the enterprise. (required) |
| 154 | userId: string, The ID of the user. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 155 | x__xgafv: string, V1 error format. |
| 156 | Allowed values |
| 157 | 1 - v1 error format |
| 158 | 2 - v2 error format |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 159 | |
| 160 | Returns: |
| 161 | An object of the form: |
| 162 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 163 | { # A Users resource represents an account associated with an enterprise. The |
| 164 | # account may be specific to a device or to an individual user (who can then |
| 165 | # use the account across multiple devices). The account may provide access to |
| 166 | # managed Google Play only, or to other Google services, depending on the |
| 167 | # identity model: |
| 168 | # <ul><li>The Google managed domain identity model requires synchronization to |
| 169 | # Google account sources (via <code>primaryEmail</code>).</li> |
| 170 | # <li>The managed Google Play Accounts identity model provides a dynamic means |
| 171 | # for enterprises to create user or device accounts as needed. These accounts |
| 172 | # provide access to managed Google Play.</li> |
| 173 | # </ul> |
| 174 | "accountType": "A String", # The type of account that this user represents. A <code>userAccount</code> |
| 175 | # can be installed on multiple devices, but a <code>deviceAccount</code> is |
| 176 | # specific to a single device. An EMM-managed user (<code>emmManaged</code>) |
| 177 | # can be either type (<code>userAccount</code>, <code>deviceAccount</code>), |
| 178 | # but a Google-managed user (<code>googleManaged</code>) is always a |
| 179 | # <code>userAccount</code>. |
| 180 | "managementType": "A String", # The entity that manages the user. With <code>googleManaged</code> users, |
| 181 | # the source of truth is Google so EMMs have to make sure a Google Account |
| 182 | # exists for the user. With <code>emmManaged</code> users, the |
| 183 | # EMM is in charge. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 184 | "id": "A String", # The unique ID for the user. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 185 | "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". |
| 186 | # Will always be set for Google managed users and not set for EMM managed |
| 187 | # users. |
| 188 | "displayName": "A String", # The name that will appear in user interfaces. Setting this property is |
| 189 | # optional when creating EMM-managed users. If you do set this property, |
| 190 | # use something generic about the organization (such as "Example, Inc.") or |
| 191 | # your name (as EMM). |
| 192 | # Not used for Google-managed user accounts. |
| 193 | # @mutable androidenterprise.users.update |
| 194 | "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or |
| 195 | # "asset#44418". Do not use personally identifiable information (PII) for |
| 196 | # this property. Must always be set for EMM-managed users. |
| 197 | # Not set for Google-managed users. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 198 | }</pre> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 199 | </div> |
| 200 | |
| 201 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 202 | <code class="details" id="getAvailableProductSet">getAvailableProductSet(enterpriseId, userId, x__xgafv=None)</code> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 203 | <pre>Retrieves the set of products a user is entitled to access. |
| 204 | |
| 205 | Args: |
| 206 | enterpriseId: string, The ID of the enterprise. (required) |
| 207 | userId: string, The ID of the user. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 208 | x__xgafv: string, V1 error format. |
| 209 | Allowed values |
| 210 | 1 - v1 error format |
| 211 | 2 - v2 error format |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 212 | |
| 213 | Returns: |
| 214 | An object of the form: |
| 215 | |
| 216 | { # A set of products. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 217 | "productId": [ # The list of product IDs making up the set of products. |
| 218 | "A String", |
| 219 | ], |
| 220 | "productVisibility": [ # Additional list of product IDs making up the product set. |
| 221 | # Unlike the productID array, in this list It's possible to specify |
| 222 | # which tracks (alpha, beta, production) of a product are visible to the |
| 223 | # user. See ProductVisibility and its fields for more information. Specifying |
| 224 | # the same product ID both here and in the productId array is not allowed and |
| 225 | # it will result in an error. |
| 226 | { # A product to be made visible to a user. |
| 227 | "trackIds": [ # Grants the user visibility to the specified product track(s), identified by |
| 228 | # <code>trackIds</code>. |
| 229 | "A String", |
| 230 | ], |
| 231 | "productId": "A String", # The product ID to make visible to the user. |
| 232 | # Required for each item in the productVisibility list. |
| 233 | "tracks": [ # Deprecated. Use <code>trackIds</code> instead. |
| 234 | "A String", |
| 235 | ], |
| 236 | }, |
| 237 | ], |
| 238 | "productSetBehavior": "A String", # The interpretation of this product set. "unknown" should never be sent and |
| 239 | # is ignored if received. "whitelist" means that the user is entitled to |
| 240 | # access the product set. "includeAll" means that all products are |
| 241 | # accessible, including products that are approved, products with revoked |
| 242 | # approval, and products that have never been approved. "allApproved" means |
| 243 | # that the user is entitled to access all products that are approved for the |
| 244 | # enterprise. If the value is "allApproved" or "includeAll", the productId |
| 245 | # field is ignored. If no value is provided, it is interpreted as |
| 246 | # "whitelist" for backwards compatibility. |
| 247 | # Further "allApproved" or "includeAll" does not enable automatic |
| 248 | # visibility of "alpha" or "beta" tracks for Android app. Use |
| 249 | # ProductVisibility to enable "alpha" or "beta" tracks per user. |
| 250 | }</pre> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 251 | </div> |
| 252 | |
| 253 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 254 | <code class="details" id="insert">insert(enterpriseId, body=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 255 | <pre>Creates a new EMM-managed user. |
| 256 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 257 | The <a href="/android/work/play/emm-api/v1/users.html">Users</a> resource |
| 258 | passed in the body of the request should include an |
| 259 | <code>accountIdentifier</code> and an <code>accountType</code>. |
| 260 | <p>If a corresponding user already exists with the same account identifier, |
| 261 | the user will be updated with the resource. In this case only the |
| 262 | <code>displayName</code> field can be changed. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 263 | |
| 264 | Args: |
| 265 | enterpriseId: string, The ID of the enterprise. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 266 | body: object, The request body. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 267 | The object takes the form of: |
| 268 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 269 | { # A Users resource represents an account associated with an enterprise. The |
| 270 | # account may be specific to a device or to an individual user (who can then |
| 271 | # use the account across multiple devices). The account may provide access to |
| 272 | # managed Google Play only, or to other Google services, depending on the |
| 273 | # identity model: |
| 274 | # <ul><li>The Google managed domain identity model requires synchronization to |
| 275 | # Google account sources (via <code>primaryEmail</code>).</li> |
| 276 | # <li>The managed Google Play Accounts identity model provides a dynamic means |
| 277 | # for enterprises to create user or device accounts as needed. These accounts |
| 278 | # provide access to managed Google Play.</li> |
| 279 | # </ul> |
| 280 | "accountType": "A String", # The type of account that this user represents. A <code>userAccount</code> |
| 281 | # can be installed on multiple devices, but a <code>deviceAccount</code> is |
| 282 | # specific to a single device. An EMM-managed user (<code>emmManaged</code>) |
| 283 | # can be either type (<code>userAccount</code>, <code>deviceAccount</code>), |
| 284 | # but a Google-managed user (<code>googleManaged</code>) is always a |
| 285 | # <code>userAccount</code>. |
| 286 | "managementType": "A String", # The entity that manages the user. With <code>googleManaged</code> users, |
| 287 | # the source of truth is Google so EMMs have to make sure a Google Account |
| 288 | # exists for the user. With <code>emmManaged</code> users, the |
| 289 | # EMM is in charge. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 290 | "id": "A String", # The unique ID for the user. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 291 | "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". |
| 292 | # Will always be set for Google managed users and not set for EMM managed |
| 293 | # users. |
| 294 | "displayName": "A String", # The name that will appear in user interfaces. Setting this property is |
| 295 | # optional when creating EMM-managed users. If you do set this property, |
| 296 | # use something generic about the organization (such as "Example, Inc.") or |
| 297 | # your name (as EMM). |
| 298 | # Not used for Google-managed user accounts. |
| 299 | # @mutable androidenterprise.users.update |
| 300 | "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or |
| 301 | # "asset#44418". Do not use personally identifiable information (PII) for |
| 302 | # this property. Must always be set for EMM-managed users. |
| 303 | # Not set for Google-managed users. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 304 | } |
| 305 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 306 | x__xgafv: string, V1 error format. |
| 307 | Allowed values |
| 308 | 1 - v1 error format |
| 309 | 2 - v2 error format |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 310 | |
| 311 | Returns: |
| 312 | An object of the form: |
| 313 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 314 | { # A Users resource represents an account associated with an enterprise. The |
| 315 | # account may be specific to a device or to an individual user (who can then |
| 316 | # use the account across multiple devices). The account may provide access to |
| 317 | # managed Google Play only, or to other Google services, depending on the |
| 318 | # identity model: |
| 319 | # <ul><li>The Google managed domain identity model requires synchronization to |
| 320 | # Google account sources (via <code>primaryEmail</code>).</li> |
| 321 | # <li>The managed Google Play Accounts identity model provides a dynamic means |
| 322 | # for enterprises to create user or device accounts as needed. These accounts |
| 323 | # provide access to managed Google Play.</li> |
| 324 | # </ul> |
| 325 | "accountType": "A String", # The type of account that this user represents. A <code>userAccount</code> |
| 326 | # can be installed on multiple devices, but a <code>deviceAccount</code> is |
| 327 | # specific to a single device. An EMM-managed user (<code>emmManaged</code>) |
| 328 | # can be either type (<code>userAccount</code>, <code>deviceAccount</code>), |
| 329 | # but a Google-managed user (<code>googleManaged</code>) is always a |
| 330 | # <code>userAccount</code>. |
| 331 | "managementType": "A String", # The entity that manages the user. With <code>googleManaged</code> users, |
| 332 | # the source of truth is Google so EMMs have to make sure a Google Account |
| 333 | # exists for the user. With <code>emmManaged</code> users, the |
| 334 | # EMM is in charge. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 335 | "id": "A String", # The unique ID for the user. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 336 | "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". |
| 337 | # Will always be set for Google managed users and not set for EMM managed |
| 338 | # users. |
| 339 | "displayName": "A String", # The name that will appear in user interfaces. Setting this property is |
| 340 | # optional when creating EMM-managed users. If you do set this property, |
| 341 | # use something generic about the organization (such as "Example, Inc.") or |
| 342 | # your name (as EMM). |
| 343 | # Not used for Google-managed user accounts. |
| 344 | # @mutable androidenterprise.users.update |
| 345 | "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or |
| 346 | # "asset#44418". Do not use personally identifiable information (PII) for |
| 347 | # this property. Must always be set for EMM-managed users. |
| 348 | # Not set for Google-managed users. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 349 | }</pre> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 350 | </div> |
| 351 | |
| 352 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 353 | <code class="details" id="list">list(enterpriseId, email, x__xgafv=None)</code> |
| 354 | <pre>Looks up a user by primary email address. |
| 355 | This is only supported for Google-managed users. Lookup of the id is not |
| 356 | needed for EMM-managed users because the id is already returned in the |
| 357 | result of the Users.insert call. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 358 | |
| 359 | Args: |
| 360 | enterpriseId: string, The ID of the enterprise. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 361 | email: string, Required. The exact primary email address of the user to look up. (required) |
| 362 | x__xgafv: string, V1 error format. |
| 363 | Allowed values |
| 364 | 1 - v1 error format |
| 365 | 2 - v2 error format |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 366 | |
| 367 | Returns: |
| 368 | An object of the form: |
| 369 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 370 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 371 | "user": [ # A user of an enterprise. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 372 | { # A Users resource represents an account associated with an enterprise. The |
| 373 | # account may be specific to a device or to an individual user (who can then |
| 374 | # use the account across multiple devices). The account may provide access to |
| 375 | # managed Google Play only, or to other Google services, depending on the |
| 376 | # identity model: |
| 377 | # <ul><li>The Google managed domain identity model requires synchronization to |
| 378 | # Google account sources (via <code>primaryEmail</code>).</li> |
| 379 | # <li>The managed Google Play Accounts identity model provides a dynamic means |
| 380 | # for enterprises to create user or device accounts as needed. These accounts |
| 381 | # provide access to managed Google Play.</li> |
| 382 | # </ul> |
| 383 | "accountType": "A String", # The type of account that this user represents. A <code>userAccount</code> |
| 384 | # can be installed on multiple devices, but a <code>deviceAccount</code> is |
| 385 | # specific to a single device. An EMM-managed user (<code>emmManaged</code>) |
| 386 | # can be either type (<code>userAccount</code>, <code>deviceAccount</code>), |
| 387 | # but a Google-managed user (<code>googleManaged</code>) is always a |
| 388 | # <code>userAccount</code>. |
| 389 | "managementType": "A String", # The entity that manages the user. With <code>googleManaged</code> users, |
| 390 | # the source of truth is Google so EMMs have to make sure a Google Account |
| 391 | # exists for the user. With <code>emmManaged</code> users, the |
| 392 | # EMM is in charge. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 393 | "id": "A String", # The unique ID for the user. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 394 | "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". |
| 395 | # Will always be set for Google managed users and not set for EMM managed |
| 396 | # users. |
| 397 | "displayName": "A String", # The name that will appear in user interfaces. Setting this property is |
| 398 | # optional when creating EMM-managed users. If you do set this property, |
| 399 | # use something generic about the organization (such as "Example, Inc.") or |
| 400 | # your name (as EMM). |
| 401 | # Not used for Google-managed user accounts. |
| 402 | # @mutable androidenterprise.users.update |
| 403 | "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or |
| 404 | # "asset#44418". Do not use personally identifiable information (PII) for |
| 405 | # this property. Must always be set for EMM-managed users. |
| 406 | # Not set for Google-managed users. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 407 | }, |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 408 | ], |
| 409 | }</pre> |
| 410 | </div> |
| 411 | |
| 412 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 413 | <code class="details" id="revokeDeviceAccess">revokeDeviceAccess(enterpriseId, userId, x__xgafv=None)</code> |
| 414 | <pre>Revokes access to all devices currently provisioned to the user. The user |
| 415 | will no longer be able to use the managed Play store on any of their |
| 416 | managed devices. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 417 | |
| 418 | This call only works with EMM-managed accounts. |
| 419 | |
| 420 | Args: |
| 421 | enterpriseId: string, The ID of the enterprise. (required) |
| 422 | userId: string, The ID of the user. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 423 | x__xgafv: string, V1 error format. |
| 424 | Allowed values |
| 425 | 1 - v1 error format |
| 426 | 2 - v2 error format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 427 | </pre> |
| 428 | </div> |
| 429 | |
| 430 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 431 | <code class="details" id="setAvailableProductSet">setAvailableProductSet(enterpriseId, userId, body=None, x__xgafv=None)</code> |
| 432 | <pre>Modifies the set of products that a user is entitled to access (referred to |
| 433 | as <em>whitelisted</em> products). Only products that are |
| 434 | <a href="/android/work/play/emm-api/v1/products/approve">approved</a> |
| 435 | or products that were previously approved (products with revoked approval) |
| 436 | can be whitelisted. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 437 | |
| 438 | Args: |
| 439 | enterpriseId: string, The ID of the enterprise. (required) |
| 440 | userId: string, The ID of the user. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 441 | body: object, The request body. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 442 | The object takes the form of: |
| 443 | |
| 444 | { # A set of products. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 445 | "productId": [ # The list of product IDs making up the set of products. |
| 446 | "A String", |
| 447 | ], |
| 448 | "productVisibility": [ # Additional list of product IDs making up the product set. |
| 449 | # Unlike the productID array, in this list It's possible to specify |
| 450 | # which tracks (alpha, beta, production) of a product are visible to the |
| 451 | # user. See ProductVisibility and its fields for more information. Specifying |
| 452 | # the same product ID both here and in the productId array is not allowed and |
| 453 | # it will result in an error. |
| 454 | { # A product to be made visible to a user. |
| 455 | "trackIds": [ # Grants the user visibility to the specified product track(s), identified by |
| 456 | # <code>trackIds</code>. |
| 457 | "A String", |
| 458 | ], |
| 459 | "productId": "A String", # The product ID to make visible to the user. |
| 460 | # Required for each item in the productVisibility list. |
| 461 | "tracks": [ # Deprecated. Use <code>trackIds</code> instead. |
| 462 | "A String", |
| 463 | ], |
| 464 | }, |
| 465 | ], |
| 466 | "productSetBehavior": "A String", # The interpretation of this product set. "unknown" should never be sent and |
| 467 | # is ignored if received. "whitelist" means that the user is entitled to |
| 468 | # access the product set. "includeAll" means that all products are |
| 469 | # accessible, including products that are approved, products with revoked |
| 470 | # approval, and products that have never been approved. "allApproved" means |
| 471 | # that the user is entitled to access all products that are approved for the |
| 472 | # enterprise. If the value is "allApproved" or "includeAll", the productId |
| 473 | # field is ignored. If no value is provided, it is interpreted as |
| 474 | # "whitelist" for backwards compatibility. |
| 475 | # Further "allApproved" or "includeAll" does not enable automatic |
| 476 | # visibility of "alpha" or "beta" tracks for Android app. Use |
| 477 | # ProductVisibility to enable "alpha" or "beta" tracks per user. |
| 478 | } |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 479 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 480 | x__xgafv: string, V1 error format. |
| 481 | Allowed values |
| 482 | 1 - v1 error format |
| 483 | 2 - v2 error format |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 484 | |
| 485 | Returns: |
| 486 | An object of the form: |
| 487 | |
| 488 | { # A set of products. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 489 | "productId": [ # The list of product IDs making up the set of products. |
| 490 | "A String", |
| 491 | ], |
| 492 | "productVisibility": [ # Additional list of product IDs making up the product set. |
| 493 | # Unlike the productID array, in this list It's possible to specify |
| 494 | # which tracks (alpha, beta, production) of a product are visible to the |
| 495 | # user. See ProductVisibility and its fields for more information. Specifying |
| 496 | # the same product ID both here and in the productId array is not allowed and |
| 497 | # it will result in an error. |
| 498 | { # A product to be made visible to a user. |
| 499 | "trackIds": [ # Grants the user visibility to the specified product track(s), identified by |
| 500 | # <code>trackIds</code>. |
| 501 | "A String", |
| 502 | ], |
| 503 | "productId": "A String", # The product ID to make visible to the user. |
| 504 | # Required for each item in the productVisibility list. |
| 505 | "tracks": [ # Deprecated. Use <code>trackIds</code> instead. |
| 506 | "A String", |
| 507 | ], |
| 508 | }, |
| 509 | ], |
| 510 | "productSetBehavior": "A String", # The interpretation of this product set. "unknown" should never be sent and |
| 511 | # is ignored if received. "whitelist" means that the user is entitled to |
| 512 | # access the product set. "includeAll" means that all products are |
| 513 | # accessible, including products that are approved, products with revoked |
| 514 | # approval, and products that have never been approved. "allApproved" means |
| 515 | # that the user is entitled to access all products that are approved for the |
| 516 | # enterprise. If the value is "allApproved" or "includeAll", the productId |
| 517 | # field is ignored. If no value is provided, it is interpreted as |
| 518 | # "whitelist" for backwards compatibility. |
| 519 | # Further "allApproved" or "includeAll" does not enable automatic |
| 520 | # visibility of "alpha" or "beta" tracks for Android app. Use |
| 521 | # ProductVisibility to enable "alpha" or "beta" tracks per user. |
| 522 | }</pre> |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 523 | </div> |
| 524 | |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 525 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 526 | <code class="details" id="update">update(enterpriseId, userId, body=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 527 | <pre>Updates the details of an EMM-managed user. |
| 528 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 529 | Can be used with EMM-managed users only (not Google managed users). |
| 530 | Pass the new details in the |
| 531 | <a href="/android/work/play/emm-api/v1/users.html">Users</a> |
| 532 | resource in the request body. Only the <code>displayName</code> field |
| 533 | can be changed. Other fields must either be unset or have the |
| 534 | currently active value. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 535 | |
| 536 | Args: |
| 537 | enterpriseId: string, The ID of the enterprise. (required) |
| 538 | userId: string, The ID of the user. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 539 | body: object, The request body. |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 540 | The object takes the form of: |
| 541 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 542 | { # A Users resource represents an account associated with an enterprise. The |
| 543 | # account may be specific to a device or to an individual user (who can then |
| 544 | # use the account across multiple devices). The account may provide access to |
| 545 | # managed Google Play only, or to other Google services, depending on the |
| 546 | # identity model: |
| 547 | # <ul><li>The Google managed domain identity model requires synchronization to |
| 548 | # Google account sources (via <code>primaryEmail</code>).</li> |
| 549 | # <li>The managed Google Play Accounts identity model provides a dynamic means |
| 550 | # for enterprises to create user or device accounts as needed. These accounts |
| 551 | # provide access to managed Google Play.</li> |
| 552 | # </ul> |
| 553 | "accountType": "A String", # The type of account that this user represents. A <code>userAccount</code> |
| 554 | # can be installed on multiple devices, but a <code>deviceAccount</code> is |
| 555 | # specific to a single device. An EMM-managed user (<code>emmManaged</code>) |
| 556 | # can be either type (<code>userAccount</code>, <code>deviceAccount</code>), |
| 557 | # but a Google-managed user (<code>googleManaged</code>) is always a |
| 558 | # <code>userAccount</code>. |
| 559 | "managementType": "A String", # The entity that manages the user. With <code>googleManaged</code> users, |
| 560 | # the source of truth is Google so EMMs have to make sure a Google Account |
| 561 | # exists for the user. With <code>emmManaged</code> users, the |
| 562 | # EMM is in charge. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 563 | "id": "A String", # The unique ID for the user. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 564 | "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". |
| 565 | # Will always be set for Google managed users and not set for EMM managed |
| 566 | # users. |
| 567 | "displayName": "A String", # The name that will appear in user interfaces. Setting this property is |
| 568 | # optional when creating EMM-managed users. If you do set this property, |
| 569 | # use something generic about the organization (such as "Example, Inc.") or |
| 570 | # your name (as EMM). |
| 571 | # Not used for Google-managed user accounts. |
| 572 | # @mutable androidenterprise.users.update |
| 573 | "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or |
| 574 | # "asset#44418". Do not use personally identifiable information (PII) for |
| 575 | # this property. Must always be set for EMM-managed users. |
| 576 | # Not set for Google-managed users. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 577 | } |
| 578 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 579 | x__xgafv: string, V1 error format. |
| 580 | Allowed values |
| 581 | 1 - v1 error format |
| 582 | 2 - v2 error format |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 583 | |
| 584 | Returns: |
| 585 | An object of the form: |
| 586 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 587 | { # A Users resource represents an account associated with an enterprise. The |
| 588 | # account may be specific to a device or to an individual user (who can then |
| 589 | # use the account across multiple devices). The account may provide access to |
| 590 | # managed Google Play only, or to other Google services, depending on the |
| 591 | # identity model: |
| 592 | # <ul><li>The Google managed domain identity model requires synchronization to |
| 593 | # Google account sources (via <code>primaryEmail</code>).</li> |
| 594 | # <li>The managed Google Play Accounts identity model provides a dynamic means |
| 595 | # for enterprises to create user or device accounts as needed. These accounts |
| 596 | # provide access to managed Google Play.</li> |
| 597 | # </ul> |
| 598 | "accountType": "A String", # The type of account that this user represents. A <code>userAccount</code> |
| 599 | # can be installed on multiple devices, but a <code>deviceAccount</code> is |
| 600 | # specific to a single device. An EMM-managed user (<code>emmManaged</code>) |
| 601 | # can be either type (<code>userAccount</code>, <code>deviceAccount</code>), |
| 602 | # but a Google-managed user (<code>googleManaged</code>) is always a |
| 603 | # <code>userAccount</code>. |
| 604 | "managementType": "A String", # The entity that manages the user. With <code>googleManaged</code> users, |
| 605 | # the source of truth is Google so EMMs have to make sure a Google Account |
| 606 | # exists for the user. With <code>emmManaged</code> users, the |
| 607 | # EMM is in charge. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 608 | "id": "A String", # The unique ID for the user. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 609 | "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". |
| 610 | # Will always be set for Google managed users and not set for EMM managed |
| 611 | # users. |
| 612 | "displayName": "A String", # The name that will appear in user interfaces. Setting this property is |
| 613 | # optional when creating EMM-managed users. If you do set this property, |
| 614 | # use something generic about the organization (such as "Example, Inc.") or |
| 615 | # your name (as EMM). |
| 616 | # Not used for Google-managed user accounts. |
| 617 | # @mutable androidenterprise.users.update |
| 618 | "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or |
| 619 | # "asset#44418". Do not use personally identifiable information (PII) for |
| 620 | # this property. Must always be set for EMM-managed users. |
| 621 | # Not set for Google-managed users. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 622 | }</pre> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 623 | </div> |
| 624 | |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 625 | </body></html> |