blob: 036caa3f32cdaff131dda15a0d96be4f7e6d51e2 [file] [log] [blame]
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Nathaniel Manista4f877e52015-06-15 16:44:50 +000075<h1><a href="androidenterprise_v1.html">Google Play EMM API</a> . <a href="androidenterprise_v1.users.html">users</a></h1>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000076<h2>Instance Methods</h2>
77<p class="toc_element">
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070078 <code><a href="#delete">delete(enterpriseId, userId)</a></code></p>
79<p class="firstline">Deleted an EMM-managed user.</p>
80<p class="toc_element">
81 <code><a href="#generateAuthenticationToken">generateAuthenticationToken(enterpriseId, userId)</a></code></p>
82<p class="firstline">Generates an authentication token which the device policy client can use to provision the given EMM-managed user account on a device. The generated token is single-use and expires after a few minutes.</p>
83<p class="toc_element">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000084 <code><a href="#generateToken">generateToken(enterpriseId, userId)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040085<p class="firstline">Generates a token (activation code) to allow this user to configure their managed account in the Android Setup Wizard. Revokes any previously generated token.</p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000086<p class="toc_element">
87 <code><a href="#get">get(enterpriseId, userId)</a></code></p>
88<p class="firstline">Retrieves a user's details.</p>
89<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -070090 <code><a href="#getAvailableProductSet">getAvailableProductSet(enterpriseId, userId)</a></code></p>
91<p class="firstline">Retrieves the set of products a user is entitled to access.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#insert">insert(enterpriseId, body=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070094<p class="firstline">Creates a new EMM-managed user.</p>
95<p class="toc_element">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000096 <code><a href="#list">list(enterpriseId, email)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070097<p class="firstline">Looks up a user by primary email address. This is only supported for Google-managed users. Lookup of the id is not needed for EMM-managed users because the id is already returned in the result of the Users.insert call.</p>
98<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099 <code><a href="#revokeDeviceAccess">revokeDeviceAccess(enterpriseId, userId)</a></code></p>
100<p class="firstline">Revokes access to all devices currently provisioned to the user. The user will no longer be able to use the managed Play store on any of their managed devices.</p>
101<p class="toc_element">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000102 <code><a href="#revokeToken">revokeToken(enterpriseId, userId)</a></code></p>
103<p class="firstline">Revokes a previously generated token (activation code) for the user.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#setAvailableProductSet">setAvailableProductSet(enterpriseId, userId, body=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400106<p class="firstline">Modifies the set of products that a user is entitled to access (referred to as whitelisted products). Only products that are approved or products that were previously approved (products with revoked approval) can be whitelisted.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#update">update(enterpriseId, userId, body=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700109<p class="firstline">Updates the details of an EMM-managed user.</p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000110<h3>Method Details</h3>
111<div class="method">
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700112 <code class="details" id="delete">delete(enterpriseId, userId)</code>
113 <pre>Deleted an EMM-managed user.
114
115Args:
116 enterpriseId: string, The ID of the enterprise. (required)
117 userId: string, The ID of the user. (required)
118</pre>
119</div>
120
121<div class="method">
122 <code class="details" id="generateAuthenticationToken">generateAuthenticationToken(enterpriseId, userId)</code>
123 <pre>Generates an authentication token which the device policy client can use to provision the given EMM-managed user account on a device. The generated token is single-use and expires after a few minutes.
124
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125You can provision a maximum of 10 devices per user.
126
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700127This call only works with EMM-managed accounts.
128
129Args:
130 enterpriseId: string, The ID of the enterprise. (required)
131 userId: string, The ID of the user. (required)
132
133Returns:
134 An object of the form:
135
Bu Sun Kim65020912020-05-20 12:08:20 -0700136 { # An AuthenticationToken is used by the EMM&#x27;s device policy client on a device to provision the given EMM-managed user on that device.
137 &quot;kind&quot;: &quot;androidenterprise#authenticationToken&quot;,
138 &quot;token&quot;: &quot;A String&quot;, # The authentication token to be passed to the device policy client on the device where it can be used to provision the account for which this token was generated.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700139 }</pre>
140</div>
141
142<div class="method">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000143 <code class="details" id="generateToken">generateToken(enterpriseId, userId)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400144 <pre>Generates a token (activation code) to allow this user to configure their managed account in the Android Setup Wizard. Revokes any previously generated token.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000145
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800146This call only works with Google managed accounts.
147
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000148Args:
149 enterpriseId: string, The ID of the enterprise. (required)
150 userId: string, The ID of the user. (required)
151
152Returns:
153 An object of the form:
154
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400155 { # A UserToken is used by a user when setting up a managed device or profile with their managed Google Play account on a device. When the user enters their email address and token (activation code) the appropriate EMM app can be automatically downloaded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 &quot;kind&quot;: &quot;androidenterprise#userToken&quot;,
157 &quot;token&quot;: &quot;A String&quot;, # The token (activation code) to be entered by the user. This consists of a sequence of decimal digits. Note that the leading digit may be 0.
158 &quot;userId&quot;: &quot;A String&quot;, # The unique ID for the user.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000159 }</pre>
160</div>
161
162<div class="method">
163 <code class="details" id="get">get(enterpriseId, userId)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 <pre>Retrieves a user&#x27;s details.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000165
166Args:
167 enterpriseId: string, The ID of the enterprise. (required)
168 userId: string, The ID of the user. (required)
169
170Returns:
171 An object of the form:
172
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400173 { # A Users resource represents an account associated with an enterprise. The account may be specific to a device or to an individual user (who can then use the account across multiple devices). The account may provide access to managed Google Play only, or to other Google services, depending on the identity model:
174 # - The Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
175 # - The managed Google Play Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to managed Google Play.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;accountIdentifier&quot;: &quot;A String&quot;, # A unique identifier you create for this user, such as &quot;user342&quot; or &quot;asset#44418&quot;. Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
177 &quot;accountType&quot;: &quot;A String&quot;, # The type of account that this user represents. A userAccount can be installed on multiple devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is always a userAccount.
178 &quot;displayName&quot;: &quot;A String&quot;, # The name that will appear in user interfaces. Setting this property is optional when creating EMM-managed users. If you do set this property, use something generic about the organization (such as &quot;Example, Inc.&quot;) or your name (as EMM). Not used for Google-managed user accounts.
179 &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user.
180 &quot;kind&quot;: &quot;androidenterprise#user&quot;,
181 &quot;managementType&quot;: &quot;A String&quot;, # The entity that manages the user. With googleManaged users, the source of truth is Google so EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is in charge.
182 &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address, for example, &quot;jsmith@example.com&quot;. Will always be set for Google managed users and not set for EMM managed users.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400183 }</pre>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000184</div>
185
186<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700187 <code class="details" id="getAvailableProductSet">getAvailableProductSet(enterpriseId, userId)</code>
188 <pre>Retrieves the set of products a user is entitled to access.
189
190Args:
191 enterpriseId: string, The ID of the enterprise. (required)
192 userId: string, The ID of the user. (required)
193
194Returns:
195 An object of the form:
196
197 { # A set of products.
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;kind&quot;: &quot;androidenterprise#productSet&quot;,
199 &quot;productId&quot;: [ # The list of product IDs making up the set of products.
200 &quot;A String&quot;,
201 ],
202 &quot;productSetBehavior&quot;: &quot;A String&quot;, # The interpretation of this product set. &quot;unknown&quot; should never be sent and is ignored if received. &quot;whitelist&quot; means that the user is entitled to access the product set. &quot;includeAll&quot; means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. &quot;allApproved&quot; means that the user is entitled to access all products that are approved for the enterprise. If the value is &quot;allApproved&quot; or &quot;includeAll&quot;, the productId field is ignored. If no value is provided, it is interpreted as &quot;whitelist&quot; for backwards compatibility. Further &quot;allApproved&quot; or &quot;includeAll&quot; does not enable automatic visibility of &quot;alpha&quot; or &quot;beta&quot; tracks for Android app. Use ProductVisibility to enable &quot;alpha&quot; or &quot;beta&quot; tracks per user.
203 &quot;productVisibility&quot;: [ # Additional list of product IDs making up the product set. Unlike the productID array, in this list It&#x27;s possible to specify which tracks (alpha, beta, production) of a product are visible to the user. See ProductVisibility and its fields for more information. Specifying the same product ID both here and in the productId array is not allowed and it will result in an error.
204 { # A product to be made visible to a user.
205 &quot;productId&quot;: &quot;A String&quot;, # The product ID to make visible to the user. Required for each item in the productVisibility list.
206 &quot;trackIds&quot;: [ # Grants the user visibility to the specified product track(s), identified by trackIds.
207 &quot;A String&quot;,
208 ],
209 &quot;tracks&quot;: [ # Deprecated. Use trackIds instead.
210 &quot;A String&quot;,
211 ],
212 },
213 ],
214 }</pre>
Takashi Matsuo06694102015-09-11 13:55:40 -0700215</div>
216
217<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700218 <code class="details" id="insert">insert(enterpriseId, body=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700219 <pre>Creates a new EMM-managed user.
220
221The Users resource passed in the body of the request should include an accountIdentifier and an accountType.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700222If a corresponding user already exists with the same account identifier, the user will be updated with the resource. In this case only the displayName field can be changed.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700223
224Args:
225 enterpriseId: string, The ID of the enterprise. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700226 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700227 The object takes the form of:
228
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400229{ # A Users resource represents an account associated with an enterprise. The account may be specific to a device or to an individual user (who can then use the account across multiple devices). The account may provide access to managed Google Play only, or to other Google services, depending on the identity model:
230 # - The Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
231 # - The managed Google Play Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to managed Google Play.
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;accountIdentifier&quot;: &quot;A String&quot;, # A unique identifier you create for this user, such as &quot;user342&quot; or &quot;asset#44418&quot;. Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
233 &quot;accountType&quot;: &quot;A String&quot;, # The type of account that this user represents. A userAccount can be installed on multiple devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is always a userAccount.
234 &quot;displayName&quot;: &quot;A String&quot;, # The name that will appear in user interfaces. Setting this property is optional when creating EMM-managed users. If you do set this property, use something generic about the organization (such as &quot;Example, Inc.&quot;) or your name (as EMM). Not used for Google-managed user accounts.
235 &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user.
236 &quot;kind&quot;: &quot;androidenterprise#user&quot;,
237 &quot;managementType&quot;: &quot;A String&quot;, # The entity that manages the user. With googleManaged users, the source of truth is Google so EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is in charge.
238 &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address, for example, &quot;jsmith@example.com&quot;. Will always be set for Google managed users and not set for EMM managed users.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400239}
240
241
242Returns:
243 An object of the form:
244
245 { # A Users resource represents an account associated with an enterprise. The account may be specific to a device or to an individual user (who can then use the account across multiple devices). The account may provide access to managed Google Play only, or to other Google services, depending on the identity model:
246 # - The Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
247 # - The managed Google Play Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to managed Google Play.
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &quot;accountIdentifier&quot;: &quot;A String&quot;, # A unique identifier you create for this user, such as &quot;user342&quot; or &quot;asset#44418&quot;. Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
249 &quot;accountType&quot;: &quot;A String&quot;, # The type of account that this user represents. A userAccount can be installed on multiple devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is always a userAccount.
250 &quot;displayName&quot;: &quot;A String&quot;, # The name that will appear in user interfaces. Setting this property is optional when creating EMM-managed users. If you do set this property, use something generic about the organization (such as &quot;Example, Inc.&quot;) or your name (as EMM). Not used for Google-managed user accounts.
251 &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user.
252 &quot;kind&quot;: &quot;androidenterprise#user&quot;,
253 &quot;managementType&quot;: &quot;A String&quot;, # The entity that manages the user. With googleManaged users, the source of truth is Google so EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is in charge.
254 &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address, for example, &quot;jsmith@example.com&quot;. Will always be set for Google managed users and not set for EMM managed users.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400255 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700256</div>
257
258<div class="method">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000259 <code class="details" id="list">list(enterpriseId, email)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700260 <pre>Looks up a user by primary email address. This is only supported for Google-managed users. Lookup of the id is not needed for EMM-managed users because the id is already returned in the result of the Users.insert call.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000261
262Args:
263 enterpriseId: string, The ID of the enterprise. (required)
264 email: string, The exact primary email address of the user to look up. (required)
265
266Returns:
267 An object of the form:
268
269 { # The matching user resources.
Bu Sun Kim65020912020-05-20 12:08:20 -0700270 &quot;kind&quot;: &quot;androidenterprise#usersListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;androidenterprise#usersListResponse&quot;.
271 &quot;user&quot;: [ # A user of an enterprise.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400272 { # A Users resource represents an account associated with an enterprise. The account may be specific to a device or to an individual user (who can then use the account across multiple devices). The account may provide access to managed Google Play only, or to other Google services, depending on the identity model:
273 # - The Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
274 # - The managed Google Play Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to managed Google Play.
Bu Sun Kim65020912020-05-20 12:08:20 -0700275 &quot;accountIdentifier&quot;: &quot;A String&quot;, # A unique identifier you create for this user, such as &quot;user342&quot; or &quot;asset#44418&quot;. Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
276 &quot;accountType&quot;: &quot;A String&quot;, # The type of account that this user represents. A userAccount can be installed on multiple devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is always a userAccount.
277 &quot;displayName&quot;: &quot;A String&quot;, # The name that will appear in user interfaces. Setting this property is optional when creating EMM-managed users. If you do set this property, use something generic about the organization (such as &quot;Example, Inc.&quot;) or your name (as EMM). Not used for Google-managed user accounts.
278 &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user.
279 &quot;kind&quot;: &quot;androidenterprise#user&quot;,
280 &quot;managementType&quot;: &quot;A String&quot;, # The entity that manages the user. With googleManaged users, the source of truth is Google so EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is in charge.
281 &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address, for example, &quot;jsmith@example.com&quot;. Will always be set for Google managed users and not set for EMM managed users.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400282 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000283 ],
284 }</pre>
285</div>
286
287<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700288 <code class="details" id="revokeDeviceAccess">revokeDeviceAccess(enterpriseId, userId)</code>
289 <pre>Revokes access to all devices currently provisioned to the user. The user will no longer be able to use the managed Play store on any of their managed devices.
290
291This call only works with EMM-managed accounts.
292
293Args:
294 enterpriseId: string, The ID of the enterprise. (required)
295 userId: string, The ID of the user. (required)
296</pre>
297</div>
298
299<div class="method">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000300 <code class="details" id="revokeToken">revokeToken(enterpriseId, userId)</code>
301 <pre>Revokes a previously generated token (activation code) for the user.
302
303Args:
304 enterpriseId: string, The ID of the enterprise. (required)
305 userId: string, The ID of the user. (required)
306</pre>
307</div>
308
Takashi Matsuo06694102015-09-11 13:55:40 -0700309<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700310 <code class="details" id="setAvailableProductSet">setAvailableProductSet(enterpriseId, userId, body=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400311 <pre>Modifies the set of products that a user is entitled to access (referred to as whitelisted products). Only products that are approved or products that were previously approved (products with revoked approval) can be whitelisted.
Takashi Matsuo06694102015-09-11 13:55:40 -0700312
313Args:
314 enterpriseId: string, The ID of the enterprise. (required)
315 userId: string, The ID of the user. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700316 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -0700317 The object takes the form of:
318
319{ # A set of products.
Bu Sun Kim65020912020-05-20 12:08:20 -0700320 &quot;kind&quot;: &quot;androidenterprise#productSet&quot;,
321 &quot;productId&quot;: [ # The list of product IDs making up the set of products.
322 &quot;A String&quot;,
323 ],
324 &quot;productSetBehavior&quot;: &quot;A String&quot;, # The interpretation of this product set. &quot;unknown&quot; should never be sent and is ignored if received. &quot;whitelist&quot; means that the user is entitled to access the product set. &quot;includeAll&quot; means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. &quot;allApproved&quot; means that the user is entitled to access all products that are approved for the enterprise. If the value is &quot;allApproved&quot; or &quot;includeAll&quot;, the productId field is ignored. If no value is provided, it is interpreted as &quot;whitelist&quot; for backwards compatibility. Further &quot;allApproved&quot; or &quot;includeAll&quot; does not enable automatic visibility of &quot;alpha&quot; or &quot;beta&quot; tracks for Android app. Use ProductVisibility to enable &quot;alpha&quot; or &quot;beta&quot; tracks per user.
325 &quot;productVisibility&quot;: [ # Additional list of product IDs making up the product set. Unlike the productID array, in this list It&#x27;s possible to specify which tracks (alpha, beta, production) of a product are visible to the user. See ProductVisibility and its fields for more information. Specifying the same product ID both here and in the productId array is not allowed and it will result in an error.
326 { # A product to be made visible to a user.
327 &quot;productId&quot;: &quot;A String&quot;, # The product ID to make visible to the user. Required for each item in the productVisibility list.
328 &quot;trackIds&quot;: [ # Grants the user visibility to the specified product track(s), identified by trackIds.
329 &quot;A String&quot;,
330 ],
331 &quot;tracks&quot;: [ # Deprecated. Use trackIds instead.
332 &quot;A String&quot;,
333 ],
334 },
335 ],
336}
Takashi Matsuo06694102015-09-11 13:55:40 -0700337
338
339Returns:
340 An object of the form:
341
342 { # A set of products.
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 &quot;kind&quot;: &quot;androidenterprise#productSet&quot;,
344 &quot;productId&quot;: [ # The list of product IDs making up the set of products.
345 &quot;A String&quot;,
346 ],
347 &quot;productSetBehavior&quot;: &quot;A String&quot;, # The interpretation of this product set. &quot;unknown&quot; should never be sent and is ignored if received. &quot;whitelist&quot; means that the user is entitled to access the product set. &quot;includeAll&quot; means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. &quot;allApproved&quot; means that the user is entitled to access all products that are approved for the enterprise. If the value is &quot;allApproved&quot; or &quot;includeAll&quot;, the productId field is ignored. If no value is provided, it is interpreted as &quot;whitelist&quot; for backwards compatibility. Further &quot;allApproved&quot; or &quot;includeAll&quot; does not enable automatic visibility of &quot;alpha&quot; or &quot;beta&quot; tracks for Android app. Use ProductVisibility to enable &quot;alpha&quot; or &quot;beta&quot; tracks per user.
348 &quot;productVisibility&quot;: [ # Additional list of product IDs making up the product set. Unlike the productID array, in this list It&#x27;s possible to specify which tracks (alpha, beta, production) of a product are visible to the user. See ProductVisibility and its fields for more information. Specifying the same product ID both here and in the productId array is not allowed and it will result in an error.
349 { # A product to be made visible to a user.
350 &quot;productId&quot;: &quot;A String&quot;, # The product ID to make visible to the user. Required for each item in the productVisibility list.
351 &quot;trackIds&quot;: [ # Grants the user visibility to the specified product track(s), identified by trackIds.
352 &quot;A String&quot;,
353 ],
354 &quot;tracks&quot;: [ # Deprecated. Use trackIds instead.
355 &quot;A String&quot;,
356 ],
357 },
358 ],
359 }</pre>
Takashi Matsuo06694102015-09-11 13:55:40 -0700360</div>
361
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700362<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700363 <code class="details" id="update">update(enterpriseId, userId, body=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700364 <pre>Updates the details of an EMM-managed user.
365
366Can be used with EMM-managed users only (not Google managed users). Pass the new details in the Users resource in the request body. Only the displayName field can be changed. Other fields must either be unset or have the currently active value.
367
368Args:
369 enterpriseId: string, The ID of the enterprise. (required)
370 userId: string, The ID of the user. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700371 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700372 The object takes the form of:
373
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400374{ # A Users resource represents an account associated with an enterprise. The account may be specific to a device or to an individual user (who can then use the account across multiple devices). The account may provide access to managed Google Play only, or to other Google services, depending on the identity model:
375 # - The Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
376 # - The managed Google Play Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to managed Google Play.
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 &quot;accountIdentifier&quot;: &quot;A String&quot;, # A unique identifier you create for this user, such as &quot;user342&quot; or &quot;asset#44418&quot;. Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
378 &quot;accountType&quot;: &quot;A String&quot;, # The type of account that this user represents. A userAccount can be installed on multiple devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is always a userAccount.
379 &quot;displayName&quot;: &quot;A String&quot;, # The name that will appear in user interfaces. Setting this property is optional when creating EMM-managed users. If you do set this property, use something generic about the organization (such as &quot;Example, Inc.&quot;) or your name (as EMM). Not used for Google-managed user accounts.
380 &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user.
381 &quot;kind&quot;: &quot;androidenterprise#user&quot;,
382 &quot;managementType&quot;: &quot;A String&quot;, # The entity that manages the user. With googleManaged users, the source of truth is Google so EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is in charge.
383 &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address, for example, &quot;jsmith@example.com&quot;. Will always be set for Google managed users and not set for EMM managed users.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400384}
385
386
387Returns:
388 An object of the form:
389
390 { # A Users resource represents an account associated with an enterprise. The account may be specific to a device or to an individual user (who can then use the account across multiple devices). The account may provide access to managed Google Play only, or to other Google services, depending on the identity model:
391 # - The Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
392 # - The managed Google Play Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to managed Google Play.
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 &quot;accountIdentifier&quot;: &quot;A String&quot;, # A unique identifier you create for this user, such as &quot;user342&quot; or &quot;asset#44418&quot;. Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
394 &quot;accountType&quot;: &quot;A String&quot;, # The type of account that this user represents. A userAccount can be installed on multiple devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is always a userAccount.
395 &quot;displayName&quot;: &quot;A String&quot;, # The name that will appear in user interfaces. Setting this property is optional when creating EMM-managed users. If you do set this property, use something generic about the organization (such as &quot;Example, Inc.&quot;) or your name (as EMM). Not used for Google-managed user accounts.
396 &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user.
397 &quot;kind&quot;: &quot;androidenterprise#user&quot;,
398 &quot;managementType&quot;: &quot;A String&quot;, # The entity that manages the user. With googleManaged users, the source of truth is Google so EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is in charge.
399 &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address, for example, &quot;jsmith@example.com&quot;. Will always be set for Google managed users and not set for EMM managed users.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400400 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700401</div>
402
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000403</body></html>