blob: 493ee4d0df008ce5ff40c325d6daa96121f3c3f0 [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>
85<p class="firstline">Generates a token (activation code) to allow this user to configure their work account in the Android Setup Wizard. Revokes any previously generated token.</p>
86<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">
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070093 <code><a href="#insert">insert(enterpriseId, body)</a></code></p>
94<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">
99 <code><a href="#patch">patch(enterpriseId, userId, body)</a></code></p>
100<p class="firstline">Updates the details of an EMM-managed user.</p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000101<p class="toc_element">
102 <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">
105 <code><a href="#setAvailableProductSet">setAvailableProductSet(enterpriseId, userId, body)</a></code></p>
106<p class="firstline">Modifies the set of products a user is entitled to access.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700107<p class="toc_element">
108 <code><a href="#update">update(enterpriseId, userId, body)</a></code></p>
109<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
125This call only works with EMM-managed accounts.
126
127Args:
128 enterpriseId: string, The ID of the enterprise. (required)
129 userId: string, The ID of the user. (required)
130
131Returns:
132 An object of the form:
133
134 { # An AuthenticationToken is used by the EMM's device policy client on a device to provision the given EMM-managed user on that device.
135 "kind": "androidenterprise#authenticationToken", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#authenticationToken".
136 "token": "A String", # 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.
137 }</pre>
138</div>
139
140<div class="method">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000141 <code class="details" id="generateToken">generateToken(enterpriseId, userId)</code>
142 <pre>Generates a token (activation code) to allow this user to configure their work account in the Android Setup Wizard. Revokes any previously generated token.
143
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800144This call only works with Google managed accounts.
145
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000146Args:
147 enterpriseId: string, The ID of the enterprise. (required)
148 userId: string, The ID of the user. (required)
149
150Returns:
151 An object of the form:
152
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800153 { # A UserToken is used by a user when setting up a managed device or profile with their work account on a device. When the user enters their email address and token (activation code) the appropriate EMM app can be automatically downloaded.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000154 "kind": "androidenterprise#userToken", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#userToken".
155 "userId": "A String", # The unique ID for the user.
156 "token": "A String", # 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.
157 }</pre>
158</div>
159
160<div class="method">
161 <code class="details" id="get">get(enterpriseId, userId)</code>
162 <pre>Retrieves a user's details.
163
164Args:
165 enterpriseId: string, The ID of the enterprise. (required)
166 userId: string, The ID of the user. (required)
167
168Returns:
169 An object of the form:
170
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700171 { # 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 Google Play for Work only, or to other Google services, depending on the identity model:
172 # - Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
173 # - Android for Work Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to Google Play for Work only.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000174 "kind": "androidenterprise#user", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#user".
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700175 "displayName": "A String", # 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 "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.
176 "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or "asset#44418". 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 "managementType": "A String", # 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.
178 "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". Will always be set for Google managed users and not set for EMM managed users.
179 "accountType": "A String", # 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.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000180 "id": "A String", # The unique ID for the user.
181 }</pre>
182</div>
183
184<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700185 <code class="details" id="getAvailableProductSet">getAvailableProductSet(enterpriseId, userId)</code>
186 <pre>Retrieves the set of products a user is entitled to access.
187
188Args:
189 enterpriseId: string, The ID of the enterprise. (required)
190 userId: string, The ID of the user. (required)
191
192Returns:
193 An object of the form:
194
195 { # A set of products.
196 "kind": "androidenterprise#productSet", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#productSet".
197 "productId": [ # The list of product IDs making up the set of products.
198 "A String",
199 ],
200 }</pre>
201</div>
202
203<div class="method">
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700204 <code class="details" id="insert">insert(enterpriseId, body)</code>
205 <pre>Creates a new EMM-managed user.
206
207The Users resource passed in the body of the request should include an accountIdentifier and an accountType.
208
209Args:
210 enterpriseId: string, The ID of the enterprise. (required)
211 body: object, The request body. (required)
212 The object takes the form of:
213
214{ # 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 Google Play for Work only, or to other Google services, depending on the identity model:
215 # - Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
216 # - Android for Work Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to Google Play for Work only.
217 "kind": "androidenterprise#user", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#user".
218 "displayName": "A String", # 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 "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.
219 "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or "asset#44418". Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
220 "managementType": "A String", # 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.
221 "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". Will always be set for Google managed users and not set for EMM managed users.
222 "accountType": "A String", # 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.
223 "id": "A String", # The unique ID for the user.
224 }
225
226
227Returns:
228 An object of the form:
229
230 { # 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 Google Play for Work only, or to other Google services, depending on the identity model:
231 # - Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
232 # - Android for Work Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to Google Play for Work only.
233 "kind": "androidenterprise#user", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#user".
234 "displayName": "A String", # 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 "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.
235 "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or "asset#44418". Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
236 "managementType": "A String", # 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.
237 "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". Will always be set for Google managed users and not set for EMM managed users.
238 "accountType": "A String", # 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.
239 "id": "A String", # The unique ID for the user.
240 }</pre>
241</div>
242
243<div class="method">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000244 <code class="details" id="list">list(enterpriseId, email)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700245 <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 +0000246
247Args:
248 enterpriseId: string, The ID of the enterprise. (required)
249 email: string, The exact primary email address of the user to look up. (required)
250
251Returns:
252 An object of the form:
253
254 { # The matching user resources.
255 "kind": "androidenterprise#usersListResponse", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#usersListResponse".
256 "user": [ # A user of an enterprise.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700257 { # 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 Google Play for Work only, or to other Google services, depending on the identity model:
258 # - Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
259 # - Android for Work Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to Google Play for Work only.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000260 "kind": "androidenterprise#user", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#user".
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700261 "displayName": "A String", # 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 "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.
262 "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or "asset#44418". Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
263 "managementType": "A String", # 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.
264 "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". Will always be set for Google managed users and not set for EMM managed users.
265 "accountType": "A String", # 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.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000266 "id": "A String", # The unique ID for the user.
267 },
268 ],
269 }</pre>
270</div>
271
272<div class="method">
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700273 <code class="details" id="patch">patch(enterpriseId, userId, body)</code>
274 <pre>Updates the details of an EMM-managed user.
275
276Can 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. This method supports patch semantics.
277
278Args:
279 enterpriseId: string, The ID of the enterprise. (required)
280 userId: string, The ID of the user. (required)
281 body: object, The request body. (required)
282 The object takes the form of:
283
284{ # 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 Google Play for Work only, or to other Google services, depending on the identity model:
285 # - Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
286 # - Android for Work Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to Google Play for Work only.
287 "kind": "androidenterprise#user", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#user".
288 "displayName": "A String", # 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 "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.
289 "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or "asset#44418". Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
290 "managementType": "A String", # 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.
291 "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". Will always be set for Google managed users and not set for EMM managed users.
292 "accountType": "A String", # 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.
293 "id": "A String", # The unique ID for the user.
294 }
295
296
297Returns:
298 An object of the form:
299
300 { # 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 Google Play for Work only, or to other Google services, depending on the identity model:
301 # - Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
302 # - Android for Work Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to Google Play for Work only.
303 "kind": "androidenterprise#user", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#user".
304 "displayName": "A String", # 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 "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.
305 "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or "asset#44418". Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
306 "managementType": "A String", # 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.
307 "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". Will always be set for Google managed users and not set for EMM managed users.
308 "accountType": "A String", # 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.
309 "id": "A String", # The unique ID for the user.
310 }</pre>
311</div>
312
313<div class="method">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000314 <code class="details" id="revokeToken">revokeToken(enterpriseId, userId)</code>
315 <pre>Revokes a previously generated token (activation code) for the user.
316
317Args:
318 enterpriseId: string, The ID of the enterprise. (required)
319 userId: string, The ID of the user. (required)
320</pre>
321</div>
322
Takashi Matsuo06694102015-09-11 13:55:40 -0700323<div class="method">
324 <code class="details" id="setAvailableProductSet">setAvailableProductSet(enterpriseId, userId, body)</code>
325 <pre>Modifies the set of products a user is entitled to access.
326
327Args:
328 enterpriseId: string, The ID of the enterprise. (required)
329 userId: string, The ID of the user. (required)
330 body: object, The request body. (required)
331 The object takes the form of:
332
333{ # A set of products.
334 "kind": "androidenterprise#productSet", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#productSet".
335 "productId": [ # The list of product IDs making up the set of products.
336 "A String",
337 ],
338 }
339
340
341Returns:
342 An object of the form:
343
344 { # A set of products.
345 "kind": "androidenterprise#productSet", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#productSet".
346 "productId": [ # The list of product IDs making up the set of products.
347 "A String",
348 ],
349 }</pre>
350</div>
351
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700352<div class="method">
353 <code class="details" id="update">update(enterpriseId, userId, body)</code>
354 <pre>Updates the details of an EMM-managed user.
355
356Can 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.
357
358Args:
359 enterpriseId: string, The ID of the enterprise. (required)
360 userId: string, The ID of the user. (required)
361 body: object, The request body. (required)
362 The object takes the form of:
363
364{ # 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 Google Play for Work only, or to other Google services, depending on the identity model:
365 # - Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
366 # - Android for Work Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to Google Play for Work only.
367 "kind": "androidenterprise#user", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#user".
368 "displayName": "A String", # 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 "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.
369 "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or "asset#44418". Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
370 "managementType": "A String", # 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.
371 "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". Will always be set for Google managed users and not set for EMM managed users.
372 "accountType": "A String", # 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.
373 "id": "A String", # The unique ID for the user.
374 }
375
376
377Returns:
378 An object of the form:
379
380 { # 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 Google Play for Work only, or to other Google services, depending on the identity model:
381 # - Google managed domain identity model requires synchronization to Google account sources (via primaryEmail).
382 # - Android for Work Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to Google Play for Work only.
383 "kind": "androidenterprise#user", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#user".
384 "displayName": "A String", # 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 "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.
385 "accountIdentifier": "A String", # A unique identifier you create for this user, such as "user342" or "asset#44418". Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.
386 "managementType": "A String", # 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.
387 "primaryEmail": "A String", # The user's primary email address, for example, "jsmith@example.com". Will always be set for Google managed users and not set for EMM managed users.
388 "accountType": "A String", # 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.
389 "id": "A String", # The unique ID for the user.
390 }</pre>
391</div>
392
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000393</body></html>