1<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
75<h1><a href="admin_directory_v1.html">Admin SDK API</a> . <a href="admin_directory_v1.users.html">users</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="admin_directory_v1.users.aliases.html">aliases()</a></code>
79</p>
80<p class="firstline">Returns the aliases Resource.</p>
81
82<p class="toc_element">
83  <code><a href="admin_directory_v1.users.photos.html">photos()</a></code>
84</p>
85<p class="firstline">Returns the photos Resource.</p>
86
87<p class="toc_element">
88  <code><a href="#close">close()</a></code></p>
89<p class="firstline">Close httplib2 connections.</p>
90<p class="toc_element">
91  <code><a href="#delete">delete(userKey, x__xgafv=None)</a></code></p>
92<p class="firstline">Deletes a user.</p>
93<p class="toc_element">
94  <code><a href="#get">get(userKey, customFieldMask=None, projection=None, viewType=None, x__xgafv=None)</a></code></p>
95<p class="firstline">Retrieves a user.</p>
96<p class="toc_element">
97  <code><a href="#insert">insert(body=None, x__xgafv=None)</a></code></p>
98<p class="firstline">Creates a user.</p>
99<p class="toc_element">
100  <code><a href="#list">list(customFieldMask=None, customer=None, domain=None, event=None, maxResults=None, orderBy=None, pageToken=None, projection=None, query=None, showDeleted=None, sortOrder=None, viewType=None, x__xgafv=None)</a></code></p>
101<p class="firstline">Retrieves a paginated list of either deleted users or all users in a domain.</p>
102<p class="toc_element">
103  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
104<p class="firstline">Retrieves the next page of results.</p>
105<p class="toc_element">
106  <code><a href="#makeAdmin">makeAdmin(userKey, body=None, x__xgafv=None)</a></code></p>
107<p class="firstline">Makes a user a super administrator.</p>
108<p class="toc_element">
109  <code><a href="#patch">patch(userKey, body=None, x__xgafv=None)</a></code></p>
110<p class="firstline">Updates a user using patch semantics. The update method should be used instead, since it also supports patch semantics and has better performance. This method is unable to clear fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead.</p>
111<p class="toc_element">
112  <code><a href="#signOut">signOut(userKey, x__xgafv=None)</a></code></p>
113<p class="firstline">Signs a user out of all web and device sessions and reset their sign-in cookies. User will have to sign in by authenticating again.</p>
114<p class="toc_element">
115  <code><a href="#undelete">undelete(userKey, body=None, x__xgafv=None)</a></code></p>
116<p class="firstline">Undeletes a deleted user.</p>
117<p class="toc_element">
118  <code><a href="#update">update(userKey, body=None, x__xgafv=None)</a></code></p>
119<p class="firstline">Updates a user. This method supports patch semantics, meaning you only need to include the fields you wish to update. Fields that are not present in the request will be preserved, and fields set to `null` will be cleared.</p>
120<p class="toc_element">
121  <code><a href="#watch">watch(body=None, customFieldMask=None, customer=None, domain=None, event=None, maxResults=None, orderBy=None, pageToken=None, projection=None, query=None, showDeleted=None, sortOrder=None, viewType=None, x__xgafv=None)</a></code></p>
122<p class="firstline">Watches for changes in users list.</p>
123<h3>Method Details</h3>
124<div class="method">
125    <code class="details" id="close">close()</code>
126  <pre>Close httplib2 connections.</pre>
127</div>
128
129<div class="method">
130    <code class="details" id="delete">delete(userKey, x__xgafv=None)</code>
131  <pre>Deletes a user.
132
133Args:
134  userKey: string, Identifies the user in the API request. The value can be the user&#x27;s primary email address, alias email address, or unique user ID. (required)
135  x__xgafv: string, V1 error format.
136    Allowed values
137      1 - v1 error format
138      2 - v2 error format
139</pre>
140</div>
141
142<div class="method">
143    <code class="details" id="get">get(userKey, customFieldMask=None, projection=None, viewType=None, x__xgafv=None)</code>
144  <pre>Retrieves a user.
145
146Args:
147  userKey: string, Identifies the user in the API request. The value can be the user&#x27;s primary email address, alias email address, or unique user ID. (required)
148  customFieldMask: string, A comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when `projection=custom`.
149  projection: string, What subset of fields to fetch for this user.
150    Allowed values
151      basic - Do not include any custom fields for the user.
152      custom - Include custom fields from schemas requested in `customFieldMask`.
153      full - Include all fields associated with this user.
154  viewType: string, Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see [Retrieve a user as a non-administrator](/admin-sdk/directory/v1/guides/manage-users#retrieve_users_non_admin).
155    Allowed values
156      admin_view - Results include both administrator-only and domain-public fields for the user.
157      domain_public - Results only include fields for the user that are publicly visible to other users in the domain.
158  x__xgafv: string, V1 error format.
159    Allowed values
160      1 - v1 error format
161      2 - v2 error format
162
163Returns:
164  An object of the form:
165
166    { # The Directory API allows you to create and manage your account&#x27;s users, user aliases, and user Gmail chat profile photos. For more information about common tasks, see the [User Accounts Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-users.html) and the [User Aliases Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-user-aliases.html).
167  &quot;addresses&quot;: &quot;&quot;, # A list of the user&#x27;s addresses. The maximum allowed data size for this field is 10Kb.
168  &quot;agreedToTerms&quot;: True or False, # Output only. This property is `true` if the user has completed an initial login and accepted the Terms of Service agreement.
169  &quot;aliases&quot;: [ # Output only. A list of the user&#x27;s alias email addresses.
170    &quot;A String&quot;,
171  ],
172  &quot;archived&quot;: True or False, # Indicates if user is archived.
173  &quot;changePasswordAtNextLogin&quot;: True or False, # Indicates if the user is forced to change their password at next login. This setting doesn&#x27;t apply when [the user signs in via a third-party identity provider](https://support.google.com/a/answer/60224).
174  &quot;creationTime&quot;: &quot;A String&quot;, # User&#x27;s G Suite account creation time. (Read-only)
175  &quot;customSchemas&quot;: { # Custom fields of the user. The key is a `schema_name` and its values are `&#x27;field_name&#x27;: &#x27;field_value&#x27;`.
176    &quot;a_key&quot;: { # JSON template for a set of custom properties (i.e. all fields in a particular schema)
177      &quot;a_key&quot;: &quot;&quot;,
178    },
179  },
180  &quot;customerId&quot;: &quot;A String&quot;, # Output only. The customer ID to [retrieve all account users](/admin-sdk/directory/v1/guides/manage-users.html#get_all_users). You can use the alias `my_customer` to represent your account&#x27;s `customerId`. As a reseller administrator, you can use the resold customer account&#x27;s `customerId`. To get a `customerId`, use the account&#x27;s primary domain in the `domain` parameter of a [users.list](/admin-sdk/directory/v1/reference/users/list) request.
181  &quot;deletionTime&quot;: &quot;A String&quot;,
182  &quot;emails&quot;: &quot;&quot;, # A list of the user&#x27;s email addresses. The maximum allowed data size for this field is 10Kb.
183  &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the resource.
184  &quot;externalIds&quot;: &quot;&quot;, # A list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.
185  &quot;gender&quot;: &quot;&quot;, # The user&#x27;s gender. The maximum allowed data size for this field is 1Kb.
186  &quot;hashFunction&quot;: &quot;A String&quot;, # Stores the hash format of the password property. We recommend sending the `password` property value as a base 16 bit hexadecimal-encoded hash value. Set the `hashFunction` values as either the [SHA-1](https://wikipedia.org/wiki/SHA-1), [MD5](https://wikipedia.org/wiki/MD5), or [crypt](https://en.wikipedia.org/wiki/Crypt_\(C\)) hash format.
187  &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user. A user `id` can be used as a user request URI&#x27;s `userKey`.
188  &quot;ims&quot;: &quot;&quot;, # The user&#x27;s Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.
189  &quot;includeInGlobalAddressList&quot;: True or False, # Indicates if the user&#x27;s profile is visible in the Google Workspace global address list when the contact sharing feature is enabled for the domain. For more information about excluding user profiles, see the [administration help center](https://support.google.com/a/answer/1285988).
190  &quot;ipWhitelisted&quot;: True or False, # If `true`, the user&#x27;s IP address is [whitelisted](https://support.google.com/a/answer/60752).
191  &quot;isAdmin&quot;: True or False, # Output only. Indicates a user with super admininistrator privileges. The `isAdmin` property can only be edited in the [Make a user an administrator](/admin-sdk/directory/v1/guides/manage-users.html#make_admin) operation ( [makeAdmin](/admin-sdk/directory/v1/reference/users/makeAdmin.html) method). If edited in the user [insert](/admin-sdk/directory/v1/reference/users/insert.html) or [update](/admin-sdk/directory/v1/reference/users/update.html) methods, the edit is ignored by the API service.
192  &quot;isDelegatedAdmin&quot;: True or False, # Output only. Indicates if the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the [Admin console](https://support.google.com/a/answer/33325).
193  &quot;isEnforcedIn2Sv&quot;: True or False, # Output only. Is 2-step verification enforced (Read-only)
194  &quot;isEnrolledIn2Sv&quot;: True or False, # Output only. Is enrolled in 2-step verification (Read-only)
195  &quot;isMailboxSetup&quot;: True or False, # Output only. Indicates if the user&#x27;s Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license.
196  &quot;keywords&quot;: &quot;&quot;, # The user&#x27;s keywords. The maximum allowed data size for this field is 1Kb.
197  &quot;kind&quot;: &quot;admin#directory#user&quot;, # Output only. The type of the API resource. For Users resources, the value is `admin#directory#user`.
198  &quot;languages&quot;: &quot;&quot;, # The user&#x27;s languages. The maximum allowed data size for this field is 1Kb.
199  &quot;lastLoginTime&quot;: &quot;A String&quot;, # User&#x27;s last login time. (Read-only)
200  &quot;locations&quot;: &quot;&quot;, # The user&#x27;s locations. The maximum allowed data size for this field is 10Kb.
201  &quot;name&quot;: { # Holds the given and family names of the user, and the read-only `fullName` value. The maximum number of characters in the `givenName` and in the `familyName` values is 60. In addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is 1Kb.
202    &quot;familyName&quot;: &quot;A String&quot;, # The user&#x27;s last name. Required when creating a user account.
203    &quot;fullName&quot;: &quot;A String&quot;, # The user&#x27;s full name formed by concatenating the first and last name values.
204    &quot;givenName&quot;: &quot;A String&quot;, # The user&#x27;s first name. Required when creating a user account.
205  },
206  &quot;nonEditableAliases&quot;: [ # Output only. List of the user&#x27;s non-editable alias email addresses. These are typically outside the account&#x27;s primary domain or sub-domain.
207    &quot;A String&quot;,
208  ],
209  &quot;notes&quot;: &quot;&quot;, # Notes for the user.
210  &quot;orgUnitPath&quot;: &quot;A String&quot;, # The full path of the parent organization associated with the user. If the parent organization is the top-level, it is represented as a forward slash (`/`).
211  &quot;organizations&quot;: &quot;&quot;, # A list of organizations the user belongs to. The maximum allowed data size for this field is 10Kb.
212  &quot;password&quot;: &quot;A String&quot;, # User&#x27;s password
213  &quot;phones&quot;: &quot;&quot;, # A list of the user&#x27;s phone numbers. The maximum allowed data size for this field is 1Kb.
214  &quot;posixAccounts&quot;: &quot;&quot;, # A list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user.
215  &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address. This property is required in a request to create a user account. The `primaryEmail` must be unique and cannot be an alias of another user.
216  &quot;recoveryEmail&quot;: &quot;A String&quot;, # Recovery email of the user.
217  &quot;recoveryPhone&quot;: &quot;A String&quot;, # Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: *+16506661212*.
218  &quot;relations&quot;: &quot;&quot;, # A list of the user&#x27;s relationships to other users. The maximum allowed data size for this field is 2Kb.
219  &quot;sshPublicKeys&quot;: &quot;&quot;, # A list of SSH public keys.
220  &quot;suspended&quot;: True or False, # Indicates if user is suspended.
221  &quot;suspensionReason&quot;: &quot;A String&quot;, # Output only. Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the `suspended` property is `true`.
222  &quot;thumbnailPhotoEtag&quot;: &quot;A String&quot;, # Output only. ETag of the user&#x27;s photo (Read-only)
223  &quot;thumbnailPhotoUrl&quot;: &quot;A String&quot;, # Output only. Photo Url of the user (Read-only)
224  &quot;websites&quot;: &quot;&quot;, # The user&#x27;s websites. The maximum allowed data size for this field is 2Kb.
225}</pre>
226</div>
227
228<div class="method">
229    <code class="details" id="insert">insert(body=None, x__xgafv=None)</code>
230  <pre>Creates a user.
231
232Args:
233  body: object, The request body.
234    The object takes the form of:
235
236{ # The Directory API allows you to create and manage your account&#x27;s users, user aliases, and user Gmail chat profile photos. For more information about common tasks, see the [User Accounts Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-users.html) and the [User Aliases Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-user-aliases.html).
237  &quot;addresses&quot;: &quot;&quot;, # A list of the user&#x27;s addresses. The maximum allowed data size for this field is 10Kb.
238  &quot;agreedToTerms&quot;: True or False, # Output only. This property is `true` if the user has completed an initial login and accepted the Terms of Service agreement.
239  &quot;aliases&quot;: [ # Output only. A list of the user&#x27;s alias email addresses.
240    &quot;A String&quot;,
241  ],
242  &quot;archived&quot;: True or False, # Indicates if user is archived.
243  &quot;changePasswordAtNextLogin&quot;: True or False, # Indicates if the user is forced to change their password at next login. This setting doesn&#x27;t apply when [the user signs in via a third-party identity provider](https://support.google.com/a/answer/60224).
244  &quot;creationTime&quot;: &quot;A String&quot;, # User&#x27;s G Suite account creation time. (Read-only)
245  &quot;customSchemas&quot;: { # Custom fields of the user. The key is a `schema_name` and its values are `&#x27;field_name&#x27;: &#x27;field_value&#x27;`.
246    &quot;a_key&quot;: { # JSON template for a set of custom properties (i.e. all fields in a particular schema)
247      &quot;a_key&quot;: &quot;&quot;,
248    },
249  },
250  &quot;customerId&quot;: &quot;A String&quot;, # Output only. The customer ID to [retrieve all account users](/admin-sdk/directory/v1/guides/manage-users.html#get_all_users). You can use the alias `my_customer` to represent your account&#x27;s `customerId`. As a reseller administrator, you can use the resold customer account&#x27;s `customerId`. To get a `customerId`, use the account&#x27;s primary domain in the `domain` parameter of a [users.list](/admin-sdk/directory/v1/reference/users/list) request.
251  &quot;deletionTime&quot;: &quot;A String&quot;,
252  &quot;emails&quot;: &quot;&quot;, # A list of the user&#x27;s email addresses. The maximum allowed data size for this field is 10Kb.
253  &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the resource.
254  &quot;externalIds&quot;: &quot;&quot;, # A list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.
255  &quot;gender&quot;: &quot;&quot;, # The user&#x27;s gender. The maximum allowed data size for this field is 1Kb.
256  &quot;hashFunction&quot;: &quot;A String&quot;, # Stores the hash format of the password property. We recommend sending the `password` property value as a base 16 bit hexadecimal-encoded hash value. Set the `hashFunction` values as either the [SHA-1](https://wikipedia.org/wiki/SHA-1), [MD5](https://wikipedia.org/wiki/MD5), or [crypt](https://en.wikipedia.org/wiki/Crypt_\(C\)) hash format.
257  &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user. A user `id` can be used as a user request URI&#x27;s `userKey`.
258  &quot;ims&quot;: &quot;&quot;, # The user&#x27;s Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.
259  &quot;includeInGlobalAddressList&quot;: True or False, # Indicates if the user&#x27;s profile is visible in the Google Workspace global address list when the contact sharing feature is enabled for the domain. For more information about excluding user profiles, see the [administration help center](https://support.google.com/a/answer/1285988).
260  &quot;ipWhitelisted&quot;: True or False, # If `true`, the user&#x27;s IP address is [whitelisted](https://support.google.com/a/answer/60752).
261  &quot;isAdmin&quot;: True or False, # Output only. Indicates a user with super admininistrator privileges. The `isAdmin` property can only be edited in the [Make a user an administrator](/admin-sdk/directory/v1/guides/manage-users.html#make_admin) operation ( [makeAdmin](/admin-sdk/directory/v1/reference/users/makeAdmin.html) method). If edited in the user [insert](/admin-sdk/directory/v1/reference/users/insert.html) or [update](/admin-sdk/directory/v1/reference/users/update.html) methods, the edit is ignored by the API service.
262  &quot;isDelegatedAdmin&quot;: True or False, # Output only. Indicates if the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the [Admin console](https://support.google.com/a/answer/33325).
263  &quot;isEnforcedIn2Sv&quot;: True or False, # Output only. Is 2-step verification enforced (Read-only)
264  &quot;isEnrolledIn2Sv&quot;: True or False, # Output only. Is enrolled in 2-step verification (Read-only)
265  &quot;isMailboxSetup&quot;: True or False, # Output only. Indicates if the user&#x27;s Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license.
266  &quot;keywords&quot;: &quot;&quot;, # The user&#x27;s keywords. The maximum allowed data size for this field is 1Kb.
267  &quot;kind&quot;: &quot;admin#directory#user&quot;, # Output only. The type of the API resource. For Users resources, the value is `admin#directory#user`.
268  &quot;languages&quot;: &quot;&quot;, # The user&#x27;s languages. The maximum allowed data size for this field is 1Kb.
269  &quot;lastLoginTime&quot;: &quot;A String&quot;, # User&#x27;s last login time. (Read-only)
270  &quot;locations&quot;: &quot;&quot;, # The user&#x27;s locations. The maximum allowed data size for this field is 10Kb.
271  &quot;name&quot;: { # Holds the given and family names of the user, and the read-only `fullName` value. The maximum number of characters in the `givenName` and in the `familyName` values is 60. In addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is 1Kb.
272    &quot;familyName&quot;: &quot;A String&quot;, # The user&#x27;s last name. Required when creating a user account.
273    &quot;fullName&quot;: &quot;A String&quot;, # The user&#x27;s full name formed by concatenating the first and last name values.
274    &quot;givenName&quot;: &quot;A String&quot;, # The user&#x27;s first name. Required when creating a user account.
275  },
276  &quot;nonEditableAliases&quot;: [ # Output only. List of the user&#x27;s non-editable alias email addresses. These are typically outside the account&#x27;s primary domain or sub-domain.
277    &quot;A String&quot;,
278  ],
279  &quot;notes&quot;: &quot;&quot;, # Notes for the user.
280  &quot;orgUnitPath&quot;: &quot;A String&quot;, # The full path of the parent organization associated with the user. If the parent organization is the top-level, it is represented as a forward slash (`/`).
281  &quot;organizations&quot;: &quot;&quot;, # A list of organizations the user belongs to. The maximum allowed data size for this field is 10Kb.
282  &quot;password&quot;: &quot;A String&quot;, # User&#x27;s password
283  &quot;phones&quot;: &quot;&quot;, # A list of the user&#x27;s phone numbers. The maximum allowed data size for this field is 1Kb.
284  &quot;posixAccounts&quot;: &quot;&quot;, # A list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user.
285  &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address. This property is required in a request to create a user account. The `primaryEmail` must be unique and cannot be an alias of another user.
286  &quot;recoveryEmail&quot;: &quot;A String&quot;, # Recovery email of the user.
287  &quot;recoveryPhone&quot;: &quot;A String&quot;, # Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: *+16506661212*.
288  &quot;relations&quot;: &quot;&quot;, # A list of the user&#x27;s relationships to other users. The maximum allowed data size for this field is 2Kb.
289  &quot;sshPublicKeys&quot;: &quot;&quot;, # A list of SSH public keys.
290  &quot;suspended&quot;: True or False, # Indicates if user is suspended.
291  &quot;suspensionReason&quot;: &quot;A String&quot;, # Output only. Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the `suspended` property is `true`.
292  &quot;thumbnailPhotoEtag&quot;: &quot;A String&quot;, # Output only. ETag of the user&#x27;s photo (Read-only)
293  &quot;thumbnailPhotoUrl&quot;: &quot;A String&quot;, # Output only. Photo Url of the user (Read-only)
294  &quot;websites&quot;: &quot;&quot;, # The user&#x27;s websites. The maximum allowed data size for this field is 2Kb.
295}
296
297  x__xgafv: string, V1 error format.
298    Allowed values
299      1 - v1 error format
300      2 - v2 error format
301
302Returns:
303  An object of the form:
304
305    { # The Directory API allows you to create and manage your account&#x27;s users, user aliases, and user Gmail chat profile photos. For more information about common tasks, see the [User Accounts Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-users.html) and the [User Aliases Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-user-aliases.html).
306  &quot;addresses&quot;: &quot;&quot;, # A list of the user&#x27;s addresses. The maximum allowed data size for this field is 10Kb.
307  &quot;agreedToTerms&quot;: True or False, # Output only. This property is `true` if the user has completed an initial login and accepted the Terms of Service agreement.
308  &quot;aliases&quot;: [ # Output only. A list of the user&#x27;s alias email addresses.
309    &quot;A String&quot;,
310  ],
311  &quot;archived&quot;: True or False, # Indicates if user is archived.
312  &quot;changePasswordAtNextLogin&quot;: True or False, # Indicates if the user is forced to change their password at next login. This setting doesn&#x27;t apply when [the user signs in via a third-party identity provider](https://support.google.com/a/answer/60224).
313  &quot;creationTime&quot;: &quot;A String&quot;, # User&#x27;s G Suite account creation time. (Read-only)
314  &quot;customSchemas&quot;: { # Custom fields of the user. The key is a `schema_name` and its values are `&#x27;field_name&#x27;: &#x27;field_value&#x27;`.
315    &quot;a_key&quot;: { # JSON template for a set of custom properties (i.e. all fields in a particular schema)
316      &quot;a_key&quot;: &quot;&quot;,
317    },
318  },
319  &quot;customerId&quot;: &quot;A String&quot;, # Output only. The customer ID to [retrieve all account users](/admin-sdk/directory/v1/guides/manage-users.html#get_all_users). You can use the alias `my_customer` to represent your account&#x27;s `customerId`. As a reseller administrator, you can use the resold customer account&#x27;s `customerId`. To get a `customerId`, use the account&#x27;s primary domain in the `domain` parameter of a [users.list](/admin-sdk/directory/v1/reference/users/list) request.
320  &quot;deletionTime&quot;: &quot;A String&quot;,
321  &quot;emails&quot;: &quot;&quot;, # A list of the user&#x27;s email addresses. The maximum allowed data size for this field is 10Kb.
322  &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the resource.
323  &quot;externalIds&quot;: &quot;&quot;, # A list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.
324  &quot;gender&quot;: &quot;&quot;, # The user&#x27;s gender. The maximum allowed data size for this field is 1Kb.
325  &quot;hashFunction&quot;: &quot;A String&quot;, # Stores the hash format of the password property. We recommend sending the `password` property value as a base 16 bit hexadecimal-encoded hash value. Set the `hashFunction` values as either the [SHA-1](https://wikipedia.org/wiki/SHA-1), [MD5](https://wikipedia.org/wiki/MD5), or [crypt](https://en.wikipedia.org/wiki/Crypt_\(C\)) hash format.
326  &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user. A user `id` can be used as a user request URI&#x27;s `userKey`.
327  &quot;ims&quot;: &quot;&quot;, # The user&#x27;s Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.
328  &quot;includeInGlobalAddressList&quot;: True or False, # Indicates if the user&#x27;s profile is visible in the Google Workspace global address list when the contact sharing feature is enabled for the domain. For more information about excluding user profiles, see the [administration help center](https://support.google.com/a/answer/1285988).
329  &quot;ipWhitelisted&quot;: True or False, # If `true`, the user&#x27;s IP address is [whitelisted](https://support.google.com/a/answer/60752).
330  &quot;isAdmin&quot;: True or False, # Output only. Indicates a user with super admininistrator privileges. The `isAdmin` property can only be edited in the [Make a user an administrator](/admin-sdk/directory/v1/guides/manage-users.html#make_admin) operation ( [makeAdmin](/admin-sdk/directory/v1/reference/users/makeAdmin.html) method). If edited in the user [insert](/admin-sdk/directory/v1/reference/users/insert.html) or [update](/admin-sdk/directory/v1/reference/users/update.html) methods, the edit is ignored by the API service.
331  &quot;isDelegatedAdmin&quot;: True or False, # Output only. Indicates if the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the [Admin console](https://support.google.com/a/answer/33325).
332  &quot;isEnforcedIn2Sv&quot;: True or False, # Output only. Is 2-step verification enforced (Read-only)
333  &quot;isEnrolledIn2Sv&quot;: True or False, # Output only. Is enrolled in 2-step verification (Read-only)
334  &quot;isMailboxSetup&quot;: True or False, # Output only. Indicates if the user&#x27;s Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license.
335  &quot;keywords&quot;: &quot;&quot;, # The user&#x27;s keywords. The maximum allowed data size for this field is 1Kb.
336  &quot;kind&quot;: &quot;admin#directory#user&quot;, # Output only. The type of the API resource. For Users resources, the value is `admin#directory#user`.
337  &quot;languages&quot;: &quot;&quot;, # The user&#x27;s languages. The maximum allowed data size for this field is 1Kb.
338  &quot;lastLoginTime&quot;: &quot;A String&quot;, # User&#x27;s last login time. (Read-only)
339  &quot;locations&quot;: &quot;&quot;, # The user&#x27;s locations. The maximum allowed data size for this field is 10Kb.
340  &quot;name&quot;: { # Holds the given and family names of the user, and the read-only `fullName` value. The maximum number of characters in the `givenName` and in the `familyName` values is 60. In addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is 1Kb.
341    &quot;familyName&quot;: &quot;A String&quot;, # The user&#x27;s last name. Required when creating a user account.
342    &quot;fullName&quot;: &quot;A String&quot;, # The user&#x27;s full name formed by concatenating the first and last name values.
343    &quot;givenName&quot;: &quot;A String&quot;, # The user&#x27;s first name. Required when creating a user account.
344  },
345  &quot;nonEditableAliases&quot;: [ # Output only. List of the user&#x27;s non-editable alias email addresses. These are typically outside the account&#x27;s primary domain or sub-domain.
346    &quot;A String&quot;,
347  ],
348  &quot;notes&quot;: &quot;&quot;, # Notes for the user.
349  &quot;orgUnitPath&quot;: &quot;A String&quot;, # The full path of the parent organization associated with the user. If the parent organization is the top-level, it is represented as a forward slash (`/`).
350  &quot;organizations&quot;: &quot;&quot;, # A list of organizations the user belongs to. The maximum allowed data size for this field is 10Kb.
351  &quot;password&quot;: &quot;A String&quot;, # User&#x27;s password
352  &quot;phones&quot;: &quot;&quot;, # A list of the user&#x27;s phone numbers. The maximum allowed data size for this field is 1Kb.
353  &quot;posixAccounts&quot;: &quot;&quot;, # A list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user.
354  &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address. This property is required in a request to create a user account. The `primaryEmail` must be unique and cannot be an alias of another user.
355  &quot;recoveryEmail&quot;: &quot;A String&quot;, # Recovery email of the user.
356  &quot;recoveryPhone&quot;: &quot;A String&quot;, # Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: *+16506661212*.
357  &quot;relations&quot;: &quot;&quot;, # A list of the user&#x27;s relationships to other users. The maximum allowed data size for this field is 2Kb.
358  &quot;sshPublicKeys&quot;: &quot;&quot;, # A list of SSH public keys.
359  &quot;suspended&quot;: True or False, # Indicates if user is suspended.
360  &quot;suspensionReason&quot;: &quot;A String&quot;, # Output only. Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the `suspended` property is `true`.
361  &quot;thumbnailPhotoEtag&quot;: &quot;A String&quot;, # Output only. ETag of the user&#x27;s photo (Read-only)
362  &quot;thumbnailPhotoUrl&quot;: &quot;A String&quot;, # Output only. Photo Url of the user (Read-only)
363  &quot;websites&quot;: &quot;&quot;, # The user&#x27;s websites. The maximum allowed data size for this field is 2Kb.
364}</pre>
365</div>
366
367<div class="method">
368    <code class="details" id="list">list(customFieldMask=None, customer=None, domain=None, event=None, maxResults=None, orderBy=None, pageToken=None, projection=None, query=None, showDeleted=None, sortOrder=None, viewType=None, x__xgafv=None)</code>
369  <pre>Retrieves a paginated list of either deleted users or all users in a domain.
370
371Args:
372  customFieldMask: string, A comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when `projection=custom`.
373  customer: string, The unique ID for the customer&#x27;s Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, fill this field instead of domain. You can also use the `my_customer` alias to represent your account&#x27;s `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users). Either the `customer` or the `domain` parameter must be provided.
374  domain: string, The domain name. Use this field to get fields from only one domain. To return all domains for a customer account, use the `customer` query parameter instead. Either the `customer` or the `domain` parameter must be provided.
375  event: string, Event on which subscription is intended (if subscribing)
376    Allowed values
377      add - User Created Event
378      delete - User Deleted Event
379      makeAdmin - User Admin Status Change Event
380      undelete - User Undeleted Event
381      update - User Updated Event
382  maxResults: integer, Maximum number of results to return.
383  orderBy: string, Property to use for sorting results.
384    Allowed values
385      email - Primary email of the user.
386      familyName - User&#x27;s family name.
387      givenName - User&#x27;s given name.
388  pageToken: string, Token to specify next page in the list
389  projection: string, What subset of fields to fetch for this user.
390    Allowed values
391      basic - Do not include any custom fields for the user.
392      custom - Include custom fields from schemas requested in `customFieldMask`.
393      full - Include all fields associated with this user.
394  query: string, Query string for searching user fields. For more information on constructing user queries, see [Search for Users](/admin-sdk/directory/v1/guides/search-users).
395  showDeleted: string, If set to `true`, retrieves the list of deleted users. (Default: `false`)
396  sortOrder: string, Whether to return results in ascending or descending order.
397    Allowed values
398      ASCENDING - Ascending order.
399      DESCENDING - Descending order.
400  viewType: string, Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see [Retrieve a user as a non-administrator](/admin-sdk/directory/v1/guides/manage-users#retrieve_users_non_admin).
401    Allowed values
402      admin_view - Results include both administrator-only and domain-public fields for the user.
403      domain_public - Results only include fields for the user that are publicly visible to other users in the domain.
404  x__xgafv: string, V1 error format.
405    Allowed values
406      1 - v1 error format
407      2 - v2 error format
408
409Returns:
410  An object of the form:
411
412    {
413  &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
414  &quot;kind&quot;: &quot;admin#directory#users&quot;, # Kind of resource this is.
415  &quot;nextPageToken&quot;: &quot;A String&quot;, # Token used to access next page of this result.
416  &quot;trigger_event&quot;: &quot;A String&quot;, # Event that triggered this response (only used in case of Push Response)
417  &quot;users&quot;: [ # List of user objects.
418    { # The Directory API allows you to create and manage your account&#x27;s users, user aliases, and user Gmail chat profile photos. For more information about common tasks, see the [User Accounts Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-users.html) and the [User Aliases Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-user-aliases.html).
419      &quot;addresses&quot;: &quot;&quot;, # A list of the user&#x27;s addresses. The maximum allowed data size for this field is 10Kb.
420      &quot;agreedToTerms&quot;: True or False, # Output only. This property is `true` if the user has completed an initial login and accepted the Terms of Service agreement.
421      &quot;aliases&quot;: [ # Output only. A list of the user&#x27;s alias email addresses.
422        &quot;A String&quot;,
423      ],
424      &quot;archived&quot;: True or False, # Indicates if user is archived.
425      &quot;changePasswordAtNextLogin&quot;: True or False, # Indicates if the user is forced to change their password at next login. This setting doesn&#x27;t apply when [the user signs in via a third-party identity provider](https://support.google.com/a/answer/60224).
426      &quot;creationTime&quot;: &quot;A String&quot;, # User&#x27;s G Suite account creation time. (Read-only)
427      &quot;customSchemas&quot;: { # Custom fields of the user. The key is a `schema_name` and its values are `&#x27;field_name&#x27;: &#x27;field_value&#x27;`.
428        &quot;a_key&quot;: { # JSON template for a set of custom properties (i.e. all fields in a particular schema)
429          &quot;a_key&quot;: &quot;&quot;,
430        },
431      },
432      &quot;customerId&quot;: &quot;A String&quot;, # Output only. The customer ID to [retrieve all account users](/admin-sdk/directory/v1/guides/manage-users.html#get_all_users). You can use the alias `my_customer` to represent your account&#x27;s `customerId`. As a reseller administrator, you can use the resold customer account&#x27;s `customerId`. To get a `customerId`, use the account&#x27;s primary domain in the `domain` parameter of a [users.list](/admin-sdk/directory/v1/reference/users/list) request.
433      &quot;deletionTime&quot;: &quot;A String&quot;,
434      &quot;emails&quot;: &quot;&quot;, # A list of the user&#x27;s email addresses. The maximum allowed data size for this field is 10Kb.
435      &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the resource.
436      &quot;externalIds&quot;: &quot;&quot;, # A list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.
437      &quot;gender&quot;: &quot;&quot;, # The user&#x27;s gender. The maximum allowed data size for this field is 1Kb.
438      &quot;hashFunction&quot;: &quot;A String&quot;, # Stores the hash format of the password property. We recommend sending the `password` property value as a base 16 bit hexadecimal-encoded hash value. Set the `hashFunction` values as either the [SHA-1](https://wikipedia.org/wiki/SHA-1), [MD5](https://wikipedia.org/wiki/MD5), or [crypt](https://en.wikipedia.org/wiki/Crypt_\(C\)) hash format.
439      &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user. A user `id` can be used as a user request URI&#x27;s `userKey`.
440      &quot;ims&quot;: &quot;&quot;, # The user&#x27;s Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.
441      &quot;includeInGlobalAddressList&quot;: True or False, # Indicates if the user&#x27;s profile is visible in the Google Workspace global address list when the contact sharing feature is enabled for the domain. For more information about excluding user profiles, see the [administration help center](https://support.google.com/a/answer/1285988).
442      &quot;ipWhitelisted&quot;: True or False, # If `true`, the user&#x27;s IP address is [whitelisted](https://support.google.com/a/answer/60752).
443      &quot;isAdmin&quot;: True or False, # Output only. Indicates a user with super admininistrator privileges. The `isAdmin` property can only be edited in the [Make a user an administrator](/admin-sdk/directory/v1/guides/manage-users.html#make_admin) operation ( [makeAdmin](/admin-sdk/directory/v1/reference/users/makeAdmin.html) method). If edited in the user [insert](/admin-sdk/directory/v1/reference/users/insert.html) or [update](/admin-sdk/directory/v1/reference/users/update.html) methods, the edit is ignored by the API service.
444      &quot;isDelegatedAdmin&quot;: True or False, # Output only. Indicates if the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the [Admin console](https://support.google.com/a/answer/33325).
445      &quot;isEnforcedIn2Sv&quot;: True or False, # Output only. Is 2-step verification enforced (Read-only)
446      &quot;isEnrolledIn2Sv&quot;: True or False, # Output only. Is enrolled in 2-step verification (Read-only)
447      &quot;isMailboxSetup&quot;: True or False, # Output only. Indicates if the user&#x27;s Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license.
448      &quot;keywords&quot;: &quot;&quot;, # The user&#x27;s keywords. The maximum allowed data size for this field is 1Kb.
449      &quot;kind&quot;: &quot;admin#directory#user&quot;, # Output only. The type of the API resource. For Users resources, the value is `admin#directory#user`.
450      &quot;languages&quot;: &quot;&quot;, # The user&#x27;s languages. The maximum allowed data size for this field is 1Kb.
451      &quot;lastLoginTime&quot;: &quot;A String&quot;, # User&#x27;s last login time. (Read-only)
452      &quot;locations&quot;: &quot;&quot;, # The user&#x27;s locations. The maximum allowed data size for this field is 10Kb.
453      &quot;name&quot;: { # Holds the given and family names of the user, and the read-only `fullName` value. The maximum number of characters in the `givenName` and in the `familyName` values is 60. In addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is 1Kb.
454        &quot;familyName&quot;: &quot;A String&quot;, # The user&#x27;s last name. Required when creating a user account.
455        &quot;fullName&quot;: &quot;A String&quot;, # The user&#x27;s full name formed by concatenating the first and last name values.
456        &quot;givenName&quot;: &quot;A String&quot;, # The user&#x27;s first name. Required when creating a user account.
457      },
458      &quot;nonEditableAliases&quot;: [ # Output only. List of the user&#x27;s non-editable alias email addresses. These are typically outside the account&#x27;s primary domain or sub-domain.
459        &quot;A String&quot;,
460      ],
461      &quot;notes&quot;: &quot;&quot;, # Notes for the user.
462      &quot;orgUnitPath&quot;: &quot;A String&quot;, # The full path of the parent organization associated with the user. If the parent organization is the top-level, it is represented as a forward slash (`/`).
463      &quot;organizations&quot;: &quot;&quot;, # A list of organizations the user belongs to. The maximum allowed data size for this field is 10Kb.
464      &quot;password&quot;: &quot;A String&quot;, # User&#x27;s password
465      &quot;phones&quot;: &quot;&quot;, # A list of the user&#x27;s phone numbers. The maximum allowed data size for this field is 1Kb.
466      &quot;posixAccounts&quot;: &quot;&quot;, # A list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user.
467      &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address. This property is required in a request to create a user account. The `primaryEmail` must be unique and cannot be an alias of another user.
468      &quot;recoveryEmail&quot;: &quot;A String&quot;, # Recovery email of the user.
469      &quot;recoveryPhone&quot;: &quot;A String&quot;, # Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: *+16506661212*.
470      &quot;relations&quot;: &quot;&quot;, # A list of the user&#x27;s relationships to other users. The maximum allowed data size for this field is 2Kb.
471      &quot;sshPublicKeys&quot;: &quot;&quot;, # A list of SSH public keys.
472      &quot;suspended&quot;: True or False, # Indicates if user is suspended.
473      &quot;suspensionReason&quot;: &quot;A String&quot;, # Output only. Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the `suspended` property is `true`.
474      &quot;thumbnailPhotoEtag&quot;: &quot;A String&quot;, # Output only. ETag of the user&#x27;s photo (Read-only)
475      &quot;thumbnailPhotoUrl&quot;: &quot;A String&quot;, # Output only. Photo Url of the user (Read-only)
476      &quot;websites&quot;: &quot;&quot;, # The user&#x27;s websites. The maximum allowed data size for this field is 2Kb.
477    },
478  ],
479}</pre>
480</div>
481
482<div class="method">
483    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
484  <pre>Retrieves the next page of results.
485
486Args:
487  previous_request: The request for the previous page. (required)
488  previous_response: The response from the request for the previous page. (required)
489
490Returns:
491  A request object that you can call &#x27;execute()&#x27; on to request the next
492  page. Returns None if there are no more items in the collection.
493    </pre>
494</div>
495
496<div class="method">
497    <code class="details" id="makeAdmin">makeAdmin(userKey, body=None, x__xgafv=None)</code>
498  <pre>Makes a user a super administrator.
499
500Args:
501  userKey: string, Identifies the user in the API request. The value can be the user&#x27;s primary email address, alias email address, or unique user ID. (required)
502  body: object, The request body.
503    The object takes the form of:
504
505{
506  &quot;status&quot;: True or False, # Indicates the administrator status of the user.
507}
508
509  x__xgafv: string, V1 error format.
510    Allowed values
511      1 - v1 error format
512      2 - v2 error format
513</pre>
514</div>
515
516<div class="method">
517    <code class="details" id="patch">patch(userKey, body=None, x__xgafv=None)</code>
518  <pre>Updates a user using patch semantics. The update method should be used instead, since it also supports patch semantics and has better performance. This method is unable to clear fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead.
519
520Args:
521  userKey: string, Identifies the user in the API request. The value can be the user&#x27;s primary email address, alias email address, or unique user ID. (required)
522  body: object, The request body.
523    The object takes the form of:
524
525{ # The Directory API allows you to create and manage your account&#x27;s users, user aliases, and user Gmail chat profile photos. For more information about common tasks, see the [User Accounts Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-users.html) and the [User Aliases Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-user-aliases.html).
526  &quot;addresses&quot;: &quot;&quot;, # A list of the user&#x27;s addresses. The maximum allowed data size for this field is 10Kb.
527  &quot;agreedToTerms&quot;: True or False, # Output only. This property is `true` if the user has completed an initial login and accepted the Terms of Service agreement.
528  &quot;aliases&quot;: [ # Output only. A list of the user&#x27;s alias email addresses.
529    &quot;A String&quot;,
530  ],
531  &quot;archived&quot;: True or False, # Indicates if user is archived.
532  &quot;changePasswordAtNextLogin&quot;: True or False, # Indicates if the user is forced to change their password at next login. This setting doesn&#x27;t apply when [the user signs in via a third-party identity provider](https://support.google.com/a/answer/60224).
533  &quot;creationTime&quot;: &quot;A String&quot;, # User&#x27;s G Suite account creation time. (Read-only)
534  &quot;customSchemas&quot;: { # Custom fields of the user. The key is a `schema_name` and its values are `&#x27;field_name&#x27;: &#x27;field_value&#x27;`.
535    &quot;a_key&quot;: { # JSON template for a set of custom properties (i.e. all fields in a particular schema)
536      &quot;a_key&quot;: &quot;&quot;,
537    },
538  },
539  &quot;customerId&quot;: &quot;A String&quot;, # Output only. The customer ID to [retrieve all account users](/admin-sdk/directory/v1/guides/manage-users.html#get_all_users). You can use the alias `my_customer` to represent your account&#x27;s `customerId`. As a reseller administrator, you can use the resold customer account&#x27;s `customerId`. To get a `customerId`, use the account&#x27;s primary domain in the `domain` parameter of a [users.list](/admin-sdk/directory/v1/reference/users/list) request.
540  &quot;deletionTime&quot;: &quot;A String&quot;,
541  &quot;emails&quot;: &quot;&quot;, # A list of the user&#x27;s email addresses. The maximum allowed data size for this field is 10Kb.
542  &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the resource.
543  &quot;externalIds&quot;: &quot;&quot;, # A list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.
544  &quot;gender&quot;: &quot;&quot;, # The user&#x27;s gender. The maximum allowed data size for this field is 1Kb.
545  &quot;hashFunction&quot;: &quot;A String&quot;, # Stores the hash format of the password property. We recommend sending the `password` property value as a base 16 bit hexadecimal-encoded hash value. Set the `hashFunction` values as either the [SHA-1](https://wikipedia.org/wiki/SHA-1), [MD5](https://wikipedia.org/wiki/MD5), or [crypt](https://en.wikipedia.org/wiki/Crypt_\(C\)) hash format.
546  &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user. A user `id` can be used as a user request URI&#x27;s `userKey`.
547  &quot;ims&quot;: &quot;&quot;, # The user&#x27;s Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.
548  &quot;includeInGlobalAddressList&quot;: True or False, # Indicates if the user&#x27;s profile is visible in the Google Workspace global address list when the contact sharing feature is enabled for the domain. For more information about excluding user profiles, see the [administration help center](https://support.google.com/a/answer/1285988).
549  &quot;ipWhitelisted&quot;: True or False, # If `true`, the user&#x27;s IP address is [whitelisted](https://support.google.com/a/answer/60752).
550  &quot;isAdmin&quot;: True or False, # Output only. Indicates a user with super admininistrator privileges. The `isAdmin` property can only be edited in the [Make a user an administrator](/admin-sdk/directory/v1/guides/manage-users.html#make_admin) operation ( [makeAdmin](/admin-sdk/directory/v1/reference/users/makeAdmin.html) method). If edited in the user [insert](/admin-sdk/directory/v1/reference/users/insert.html) or [update](/admin-sdk/directory/v1/reference/users/update.html) methods, the edit is ignored by the API service.
551  &quot;isDelegatedAdmin&quot;: True or False, # Output only. Indicates if the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the [Admin console](https://support.google.com/a/answer/33325).
552  &quot;isEnforcedIn2Sv&quot;: True or False, # Output only. Is 2-step verification enforced (Read-only)
553  &quot;isEnrolledIn2Sv&quot;: True or False, # Output only. Is enrolled in 2-step verification (Read-only)
554  &quot;isMailboxSetup&quot;: True or False, # Output only. Indicates if the user&#x27;s Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license.
555  &quot;keywords&quot;: &quot;&quot;, # The user&#x27;s keywords. The maximum allowed data size for this field is 1Kb.
556  &quot;kind&quot;: &quot;admin#directory#user&quot;, # Output only. The type of the API resource. For Users resources, the value is `admin#directory#user`.
557  &quot;languages&quot;: &quot;&quot;, # The user&#x27;s languages. The maximum allowed data size for this field is 1Kb.
558  &quot;lastLoginTime&quot;: &quot;A String&quot;, # User&#x27;s last login time. (Read-only)
559  &quot;locations&quot;: &quot;&quot;, # The user&#x27;s locations. The maximum allowed data size for this field is 10Kb.
560  &quot;name&quot;: { # Holds the given and family names of the user, and the read-only `fullName` value. The maximum number of characters in the `givenName` and in the `familyName` values is 60. In addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is 1Kb.
561    &quot;familyName&quot;: &quot;A String&quot;, # The user&#x27;s last name. Required when creating a user account.
562    &quot;fullName&quot;: &quot;A String&quot;, # The user&#x27;s full name formed by concatenating the first and last name values.
563    &quot;givenName&quot;: &quot;A String&quot;, # The user&#x27;s first name. Required when creating a user account.
564  },
565  &quot;nonEditableAliases&quot;: [ # Output only. List of the user&#x27;s non-editable alias email addresses. These are typically outside the account&#x27;s primary domain or sub-domain.
566    &quot;A String&quot;,
567  ],
568  &quot;notes&quot;: &quot;&quot;, # Notes for the user.
569  &quot;orgUnitPath&quot;: &quot;A String&quot;, # The full path of the parent organization associated with the user. If the parent organization is the top-level, it is represented as a forward slash (`/`).
570  &quot;organizations&quot;: &quot;&quot;, # A list of organizations the user belongs to. The maximum allowed data size for this field is 10Kb.
571  &quot;password&quot;: &quot;A String&quot;, # User&#x27;s password
572  &quot;phones&quot;: &quot;&quot;, # A list of the user&#x27;s phone numbers. The maximum allowed data size for this field is 1Kb.
573  &quot;posixAccounts&quot;: &quot;&quot;, # A list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user.
574  &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address. This property is required in a request to create a user account. The `primaryEmail` must be unique and cannot be an alias of another user.
575  &quot;recoveryEmail&quot;: &quot;A String&quot;, # Recovery email of the user.
576  &quot;recoveryPhone&quot;: &quot;A String&quot;, # Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: *+16506661212*.
577  &quot;relations&quot;: &quot;&quot;, # A list of the user&#x27;s relationships to other users. The maximum allowed data size for this field is 2Kb.
578  &quot;sshPublicKeys&quot;: &quot;&quot;, # A list of SSH public keys.
579  &quot;suspended&quot;: True or False, # Indicates if user is suspended.
580  &quot;suspensionReason&quot;: &quot;A String&quot;, # Output only. Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the `suspended` property is `true`.
581  &quot;thumbnailPhotoEtag&quot;: &quot;A String&quot;, # Output only. ETag of the user&#x27;s photo (Read-only)
582  &quot;thumbnailPhotoUrl&quot;: &quot;A String&quot;, # Output only. Photo Url of the user (Read-only)
583  &quot;websites&quot;: &quot;&quot;, # The user&#x27;s websites. The maximum allowed data size for this field is 2Kb.
584}
585
586  x__xgafv: string, V1 error format.
587    Allowed values
588      1 - v1 error format
589      2 - v2 error format
590
591Returns:
592  An object of the form:
593
594    { # The Directory API allows you to create and manage your account&#x27;s users, user aliases, and user Gmail chat profile photos. For more information about common tasks, see the [User Accounts Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-users.html) and the [User Aliases Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-user-aliases.html).
595  &quot;addresses&quot;: &quot;&quot;, # A list of the user&#x27;s addresses. The maximum allowed data size for this field is 10Kb.
596  &quot;agreedToTerms&quot;: True or False, # Output only. This property is `true` if the user has completed an initial login and accepted the Terms of Service agreement.
597  &quot;aliases&quot;: [ # Output only. A list of the user&#x27;s alias email addresses.
598    &quot;A String&quot;,
599  ],
600  &quot;archived&quot;: True or False, # Indicates if user is archived.
601  &quot;changePasswordAtNextLogin&quot;: True or False, # Indicates if the user is forced to change their password at next login. This setting doesn&#x27;t apply when [the user signs in via a third-party identity provider](https://support.google.com/a/answer/60224).
602  &quot;creationTime&quot;: &quot;A String&quot;, # User&#x27;s G Suite account creation time. (Read-only)
603  &quot;customSchemas&quot;: { # Custom fields of the user. The key is a `schema_name` and its values are `&#x27;field_name&#x27;: &#x27;field_value&#x27;`.
604    &quot;a_key&quot;: { # JSON template for a set of custom properties (i.e. all fields in a particular schema)
605      &quot;a_key&quot;: &quot;&quot;,
606    },
607  },
608  &quot;customerId&quot;: &quot;A String&quot;, # Output only. The customer ID to [retrieve all account users](/admin-sdk/directory/v1/guides/manage-users.html#get_all_users). You can use the alias `my_customer` to represent your account&#x27;s `customerId`. As a reseller administrator, you can use the resold customer account&#x27;s `customerId`. To get a `customerId`, use the account&#x27;s primary domain in the `domain` parameter of a [users.list](/admin-sdk/directory/v1/reference/users/list) request.
609  &quot;deletionTime&quot;: &quot;A String&quot;,
610  &quot;emails&quot;: &quot;&quot;, # A list of the user&#x27;s email addresses. The maximum allowed data size for this field is 10Kb.
611  &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the resource.
612  &quot;externalIds&quot;: &quot;&quot;, # A list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.
613  &quot;gender&quot;: &quot;&quot;, # The user&#x27;s gender. The maximum allowed data size for this field is 1Kb.
614  &quot;hashFunction&quot;: &quot;A String&quot;, # Stores the hash format of the password property. We recommend sending the `password` property value as a base 16 bit hexadecimal-encoded hash value. Set the `hashFunction` values as either the [SHA-1](https://wikipedia.org/wiki/SHA-1), [MD5](https://wikipedia.org/wiki/MD5), or [crypt](https://en.wikipedia.org/wiki/Crypt_\(C\)) hash format.
615  &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user. A user `id` can be used as a user request URI&#x27;s `userKey`.
616  &quot;ims&quot;: &quot;&quot;, # The user&#x27;s Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.
617  &quot;includeInGlobalAddressList&quot;: True or False, # Indicates if the user&#x27;s profile is visible in the Google Workspace global address list when the contact sharing feature is enabled for the domain. For more information about excluding user profiles, see the [administration help center](https://support.google.com/a/answer/1285988).
618  &quot;ipWhitelisted&quot;: True or False, # If `true`, the user&#x27;s IP address is [whitelisted](https://support.google.com/a/answer/60752).
619  &quot;isAdmin&quot;: True or False, # Output only. Indicates a user with super admininistrator privileges. The `isAdmin` property can only be edited in the [Make a user an administrator](/admin-sdk/directory/v1/guides/manage-users.html#make_admin) operation ( [makeAdmin](/admin-sdk/directory/v1/reference/users/makeAdmin.html) method). If edited in the user [insert](/admin-sdk/directory/v1/reference/users/insert.html) or [update](/admin-sdk/directory/v1/reference/users/update.html) methods, the edit is ignored by the API service.
620  &quot;isDelegatedAdmin&quot;: True or False, # Output only. Indicates if the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the [Admin console](https://support.google.com/a/answer/33325).
621  &quot;isEnforcedIn2Sv&quot;: True or False, # Output only. Is 2-step verification enforced (Read-only)
622  &quot;isEnrolledIn2Sv&quot;: True or False, # Output only. Is enrolled in 2-step verification (Read-only)
623  &quot;isMailboxSetup&quot;: True or False, # Output only. Indicates if the user&#x27;s Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license.
624  &quot;keywords&quot;: &quot;&quot;, # The user&#x27;s keywords. The maximum allowed data size for this field is 1Kb.
625  &quot;kind&quot;: &quot;admin#directory#user&quot;, # Output only. The type of the API resource. For Users resources, the value is `admin#directory#user`.
626  &quot;languages&quot;: &quot;&quot;, # The user&#x27;s languages. The maximum allowed data size for this field is 1Kb.
627  &quot;lastLoginTime&quot;: &quot;A String&quot;, # User&#x27;s last login time. (Read-only)
628  &quot;locations&quot;: &quot;&quot;, # The user&#x27;s locations. The maximum allowed data size for this field is 10Kb.
629  &quot;name&quot;: { # Holds the given and family names of the user, and the read-only `fullName` value. The maximum number of characters in the `givenName` and in the `familyName` values is 60. In addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is 1Kb.
630    &quot;familyName&quot;: &quot;A String&quot;, # The user&#x27;s last name. Required when creating a user account.
631    &quot;fullName&quot;: &quot;A String&quot;, # The user&#x27;s full name formed by concatenating the first and last name values.
632    &quot;givenName&quot;: &quot;A String&quot;, # The user&#x27;s first name. Required when creating a user account.
633  },
634  &quot;nonEditableAliases&quot;: [ # Output only. List of the user&#x27;s non-editable alias email addresses. These are typically outside the account&#x27;s primary domain or sub-domain.
635    &quot;A String&quot;,
636  ],
637  &quot;notes&quot;: &quot;&quot;, # Notes for the user.
638  &quot;orgUnitPath&quot;: &quot;A String&quot;, # The full path of the parent organization associated with the user. If the parent organization is the top-level, it is represented as a forward slash (`/`).
639  &quot;organizations&quot;: &quot;&quot;, # A list of organizations the user belongs to. The maximum allowed data size for this field is 10Kb.
640  &quot;password&quot;: &quot;A String&quot;, # User&#x27;s password
641  &quot;phones&quot;: &quot;&quot;, # A list of the user&#x27;s phone numbers. The maximum allowed data size for this field is 1Kb.
642  &quot;posixAccounts&quot;: &quot;&quot;, # A list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user.
643  &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address. This property is required in a request to create a user account. The `primaryEmail` must be unique and cannot be an alias of another user.
644  &quot;recoveryEmail&quot;: &quot;A String&quot;, # Recovery email of the user.
645  &quot;recoveryPhone&quot;: &quot;A String&quot;, # Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: *+16506661212*.
646  &quot;relations&quot;: &quot;&quot;, # A list of the user&#x27;s relationships to other users. The maximum allowed data size for this field is 2Kb.
647  &quot;sshPublicKeys&quot;: &quot;&quot;, # A list of SSH public keys.
648  &quot;suspended&quot;: True or False, # Indicates if user is suspended.
649  &quot;suspensionReason&quot;: &quot;A String&quot;, # Output only. Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the `suspended` property is `true`.
650  &quot;thumbnailPhotoEtag&quot;: &quot;A String&quot;, # Output only. ETag of the user&#x27;s photo (Read-only)
651  &quot;thumbnailPhotoUrl&quot;: &quot;A String&quot;, # Output only. Photo Url of the user (Read-only)
652  &quot;websites&quot;: &quot;&quot;, # The user&#x27;s websites. The maximum allowed data size for this field is 2Kb.
653}</pre>
654</div>
655
656<div class="method">
657    <code class="details" id="signOut">signOut(userKey, x__xgafv=None)</code>
658  <pre>Signs a user out of all web and device sessions and reset their sign-in cookies. User will have to sign in by authenticating again.
659
660Args:
661  userKey: string, Identifies the target user in the API request. The value can be the user&#x27;s primary email address, alias email address, or unique user ID. (required)
662  x__xgafv: string, V1 error format.
663    Allowed values
664      1 - v1 error format
665      2 - v2 error format
666</pre>
667</div>
668
669<div class="method">
670    <code class="details" id="undelete">undelete(userKey, body=None, x__xgafv=None)</code>
671  <pre>Undeletes a deleted user.
672
673Args:
674  userKey: string, The immutable id of the user (required)
675  body: object, The request body.
676    The object takes the form of:
677
678{
679  &quot;orgUnitPath&quot;: &quot;A String&quot;, # OrgUnit of User
680}
681
682  x__xgafv: string, V1 error format.
683    Allowed values
684      1 - v1 error format
685      2 - v2 error format
686</pre>
687</div>
688
689<div class="method">
690    <code class="details" id="update">update(userKey, body=None, x__xgafv=None)</code>
691  <pre>Updates a user. This method supports patch semantics, meaning you only need to include the fields you wish to update. Fields that are not present in the request will be preserved, and fields set to `null` will be cleared.
692
693Args:
694  userKey: string, Identifies the user in the API request. The value can be the user&#x27;s primary email address, alias email address, or unique user ID. (required)
695  body: object, The request body.
696    The object takes the form of:
697
698{ # The Directory API allows you to create and manage your account&#x27;s users, user aliases, and user Gmail chat profile photos. For more information about common tasks, see the [User Accounts Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-users.html) and the [User Aliases Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-user-aliases.html).
699  &quot;addresses&quot;: &quot;&quot;, # A list of the user&#x27;s addresses. The maximum allowed data size for this field is 10Kb.
700  &quot;agreedToTerms&quot;: True or False, # Output only. This property is `true` if the user has completed an initial login and accepted the Terms of Service agreement.
701  &quot;aliases&quot;: [ # Output only. A list of the user&#x27;s alias email addresses.
702    &quot;A String&quot;,
703  ],
704  &quot;archived&quot;: True or False, # Indicates if user is archived.
705  &quot;changePasswordAtNextLogin&quot;: True or False, # Indicates if the user is forced to change their password at next login. This setting doesn&#x27;t apply when [the user signs in via a third-party identity provider](https://support.google.com/a/answer/60224).
706  &quot;creationTime&quot;: &quot;A String&quot;, # User&#x27;s G Suite account creation time. (Read-only)
707  &quot;customSchemas&quot;: { # Custom fields of the user. The key is a `schema_name` and its values are `&#x27;field_name&#x27;: &#x27;field_value&#x27;`.
708    &quot;a_key&quot;: { # JSON template for a set of custom properties (i.e. all fields in a particular schema)
709      &quot;a_key&quot;: &quot;&quot;,
710    },
711  },
712  &quot;customerId&quot;: &quot;A String&quot;, # Output only. The customer ID to [retrieve all account users](/admin-sdk/directory/v1/guides/manage-users.html#get_all_users). You can use the alias `my_customer` to represent your account&#x27;s `customerId`. As a reseller administrator, you can use the resold customer account&#x27;s `customerId`. To get a `customerId`, use the account&#x27;s primary domain in the `domain` parameter of a [users.list](/admin-sdk/directory/v1/reference/users/list) request.
713  &quot;deletionTime&quot;: &quot;A String&quot;,
714  &quot;emails&quot;: &quot;&quot;, # A list of the user&#x27;s email addresses. The maximum allowed data size for this field is 10Kb.
715  &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the resource.
716  &quot;externalIds&quot;: &quot;&quot;, # A list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.
717  &quot;gender&quot;: &quot;&quot;, # The user&#x27;s gender. The maximum allowed data size for this field is 1Kb.
718  &quot;hashFunction&quot;: &quot;A String&quot;, # Stores the hash format of the password property. We recommend sending the `password` property value as a base 16 bit hexadecimal-encoded hash value. Set the `hashFunction` values as either the [SHA-1](https://wikipedia.org/wiki/SHA-1), [MD5](https://wikipedia.org/wiki/MD5), or [crypt](https://en.wikipedia.org/wiki/Crypt_\(C\)) hash format.
719  &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user. A user `id` can be used as a user request URI&#x27;s `userKey`.
720  &quot;ims&quot;: &quot;&quot;, # The user&#x27;s Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.
721  &quot;includeInGlobalAddressList&quot;: True or False, # Indicates if the user&#x27;s profile is visible in the Google Workspace global address list when the contact sharing feature is enabled for the domain. For more information about excluding user profiles, see the [administration help center](https://support.google.com/a/answer/1285988).
722  &quot;ipWhitelisted&quot;: True or False, # If `true`, the user&#x27;s IP address is [whitelisted](https://support.google.com/a/answer/60752).
723  &quot;isAdmin&quot;: True or False, # Output only. Indicates a user with super admininistrator privileges. The `isAdmin` property can only be edited in the [Make a user an administrator](/admin-sdk/directory/v1/guides/manage-users.html#make_admin) operation ( [makeAdmin](/admin-sdk/directory/v1/reference/users/makeAdmin.html) method). If edited in the user [insert](/admin-sdk/directory/v1/reference/users/insert.html) or [update](/admin-sdk/directory/v1/reference/users/update.html) methods, the edit is ignored by the API service.
724  &quot;isDelegatedAdmin&quot;: True or False, # Output only. Indicates if the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the [Admin console](https://support.google.com/a/answer/33325).
725  &quot;isEnforcedIn2Sv&quot;: True or False, # Output only. Is 2-step verification enforced (Read-only)
726  &quot;isEnrolledIn2Sv&quot;: True or False, # Output only. Is enrolled in 2-step verification (Read-only)
727  &quot;isMailboxSetup&quot;: True or False, # Output only. Indicates if the user&#x27;s Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license.
728  &quot;keywords&quot;: &quot;&quot;, # The user&#x27;s keywords. The maximum allowed data size for this field is 1Kb.
729  &quot;kind&quot;: &quot;admin#directory#user&quot;, # Output only. The type of the API resource. For Users resources, the value is `admin#directory#user`.
730  &quot;languages&quot;: &quot;&quot;, # The user&#x27;s languages. The maximum allowed data size for this field is 1Kb.
731  &quot;lastLoginTime&quot;: &quot;A String&quot;, # User&#x27;s last login time. (Read-only)
732  &quot;locations&quot;: &quot;&quot;, # The user&#x27;s locations. The maximum allowed data size for this field is 10Kb.
733  &quot;name&quot;: { # Holds the given and family names of the user, and the read-only `fullName` value. The maximum number of characters in the `givenName` and in the `familyName` values is 60. In addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is 1Kb.
734    &quot;familyName&quot;: &quot;A String&quot;, # The user&#x27;s last name. Required when creating a user account.
735    &quot;fullName&quot;: &quot;A String&quot;, # The user&#x27;s full name formed by concatenating the first and last name values.
736    &quot;givenName&quot;: &quot;A String&quot;, # The user&#x27;s first name. Required when creating a user account.
737  },
738  &quot;nonEditableAliases&quot;: [ # Output only. List of the user&#x27;s non-editable alias email addresses. These are typically outside the account&#x27;s primary domain or sub-domain.
739    &quot;A String&quot;,
740  ],
741  &quot;notes&quot;: &quot;&quot;, # Notes for the user.
742  &quot;orgUnitPath&quot;: &quot;A String&quot;, # The full path of the parent organization associated with the user. If the parent organization is the top-level, it is represented as a forward slash (`/`).
743  &quot;organizations&quot;: &quot;&quot;, # A list of organizations the user belongs to. The maximum allowed data size for this field is 10Kb.
744  &quot;password&quot;: &quot;A String&quot;, # User&#x27;s password
745  &quot;phones&quot;: &quot;&quot;, # A list of the user&#x27;s phone numbers. The maximum allowed data size for this field is 1Kb.
746  &quot;posixAccounts&quot;: &quot;&quot;, # A list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user.
747  &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address. This property is required in a request to create a user account. The `primaryEmail` must be unique and cannot be an alias of another user.
748  &quot;recoveryEmail&quot;: &quot;A String&quot;, # Recovery email of the user.
749  &quot;recoveryPhone&quot;: &quot;A String&quot;, # Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: *+16506661212*.
750  &quot;relations&quot;: &quot;&quot;, # A list of the user&#x27;s relationships to other users. The maximum allowed data size for this field is 2Kb.
751  &quot;sshPublicKeys&quot;: &quot;&quot;, # A list of SSH public keys.
752  &quot;suspended&quot;: True or False, # Indicates if user is suspended.
753  &quot;suspensionReason&quot;: &quot;A String&quot;, # Output only. Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the `suspended` property is `true`.
754  &quot;thumbnailPhotoEtag&quot;: &quot;A String&quot;, # Output only. ETag of the user&#x27;s photo (Read-only)
755  &quot;thumbnailPhotoUrl&quot;: &quot;A String&quot;, # Output only. Photo Url of the user (Read-only)
756  &quot;websites&quot;: &quot;&quot;, # The user&#x27;s websites. The maximum allowed data size for this field is 2Kb.
757}
758
759  x__xgafv: string, V1 error format.
760    Allowed values
761      1 - v1 error format
762      2 - v2 error format
763
764Returns:
765  An object of the form:
766
767    { # The Directory API allows you to create and manage your account&#x27;s users, user aliases, and user Gmail chat profile photos. For more information about common tasks, see the [User Accounts Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-users.html) and the [User Aliases Developer&#x27;s Guide](/admin-sdk/directory/v1/guides/manage-user-aliases.html).
768  &quot;addresses&quot;: &quot;&quot;, # A list of the user&#x27;s addresses. The maximum allowed data size for this field is 10Kb.
769  &quot;agreedToTerms&quot;: True or False, # Output only. This property is `true` if the user has completed an initial login and accepted the Terms of Service agreement.
770  &quot;aliases&quot;: [ # Output only. A list of the user&#x27;s alias email addresses.
771    &quot;A String&quot;,
772  ],
773  &quot;archived&quot;: True or False, # Indicates if user is archived.
774  &quot;changePasswordAtNextLogin&quot;: True or False, # Indicates if the user is forced to change their password at next login. This setting doesn&#x27;t apply when [the user signs in via a third-party identity provider](https://support.google.com/a/answer/60224).
775  &quot;creationTime&quot;: &quot;A String&quot;, # User&#x27;s G Suite account creation time. (Read-only)
776  &quot;customSchemas&quot;: { # Custom fields of the user. The key is a `schema_name` and its values are `&#x27;field_name&#x27;: &#x27;field_value&#x27;`.
777    &quot;a_key&quot;: { # JSON template for a set of custom properties (i.e. all fields in a particular schema)
778      &quot;a_key&quot;: &quot;&quot;,
779    },
780  },
781  &quot;customerId&quot;: &quot;A String&quot;, # Output only. The customer ID to [retrieve all account users](/admin-sdk/directory/v1/guides/manage-users.html#get_all_users). You can use the alias `my_customer` to represent your account&#x27;s `customerId`. As a reseller administrator, you can use the resold customer account&#x27;s `customerId`. To get a `customerId`, use the account&#x27;s primary domain in the `domain` parameter of a [users.list](/admin-sdk/directory/v1/reference/users/list) request.
782  &quot;deletionTime&quot;: &quot;A String&quot;,
783  &quot;emails&quot;: &quot;&quot;, # A list of the user&#x27;s email addresses. The maximum allowed data size for this field is 10Kb.
784  &quot;etag&quot;: &quot;A String&quot;, # Output only. ETag of the resource.
785  &quot;externalIds&quot;: &quot;&quot;, # A list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2Kb.
786  &quot;gender&quot;: &quot;&quot;, # The user&#x27;s gender. The maximum allowed data size for this field is 1Kb.
787  &quot;hashFunction&quot;: &quot;A String&quot;, # Stores the hash format of the password property. We recommend sending the `password` property value as a base 16 bit hexadecimal-encoded hash value. Set the `hashFunction` values as either the [SHA-1](https://wikipedia.org/wiki/SHA-1), [MD5](https://wikipedia.org/wiki/MD5), or [crypt](https://en.wikipedia.org/wiki/Crypt_\(C\)) hash format.
788  &quot;id&quot;: &quot;A String&quot;, # The unique ID for the user. A user `id` can be used as a user request URI&#x27;s `userKey`.
789  &quot;ims&quot;: &quot;&quot;, # The user&#x27;s Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The maximum allowed data size for this field is 2Kb.
790  &quot;includeInGlobalAddressList&quot;: True or False, # Indicates if the user&#x27;s profile is visible in the Google Workspace global address list when the contact sharing feature is enabled for the domain. For more information about excluding user profiles, see the [administration help center](https://support.google.com/a/answer/1285988).
791  &quot;ipWhitelisted&quot;: True or False, # If `true`, the user&#x27;s IP address is [whitelisted](https://support.google.com/a/answer/60752).
792  &quot;isAdmin&quot;: True or False, # Output only. Indicates a user with super admininistrator privileges. The `isAdmin` property can only be edited in the [Make a user an administrator](/admin-sdk/directory/v1/guides/manage-users.html#make_admin) operation ( [makeAdmin](/admin-sdk/directory/v1/reference/users/makeAdmin.html) method). If edited in the user [insert](/admin-sdk/directory/v1/reference/users/insert.html) or [update](/admin-sdk/directory/v1/reference/users/update.html) methods, the edit is ignored by the API service.
793  &quot;isDelegatedAdmin&quot;: True or False, # Output only. Indicates if the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the [Admin console](https://support.google.com/a/answer/33325).
794  &quot;isEnforcedIn2Sv&quot;: True or False, # Output only. Is 2-step verification enforced (Read-only)
795  &quot;isEnrolledIn2Sv&quot;: True or False, # Output only. Is enrolled in 2-step verification (Read-only)
796  &quot;isMailboxSetup&quot;: True or False, # Output only. Indicates if the user&#x27;s Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license.
797  &quot;keywords&quot;: &quot;&quot;, # The user&#x27;s keywords. The maximum allowed data size for this field is 1Kb.
798  &quot;kind&quot;: &quot;admin#directory#user&quot;, # Output only. The type of the API resource. For Users resources, the value is `admin#directory#user`.
799  &quot;languages&quot;: &quot;&quot;, # The user&#x27;s languages. The maximum allowed data size for this field is 1Kb.
800  &quot;lastLoginTime&quot;: &quot;A String&quot;, # User&#x27;s last login time. (Read-only)
801  &quot;locations&quot;: &quot;&quot;, # The user&#x27;s locations. The maximum allowed data size for this field is 10Kb.
802  &quot;name&quot;: { # Holds the given and family names of the user, and the read-only `fullName` value. The maximum number of characters in the `givenName` and in the `familyName` values is 60. In addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is 1Kb.
803    &quot;familyName&quot;: &quot;A String&quot;, # The user&#x27;s last name. Required when creating a user account.
804    &quot;fullName&quot;: &quot;A String&quot;, # The user&#x27;s full name formed by concatenating the first and last name values.
805    &quot;givenName&quot;: &quot;A String&quot;, # The user&#x27;s first name. Required when creating a user account.
806  },
807  &quot;nonEditableAliases&quot;: [ # Output only. List of the user&#x27;s non-editable alias email addresses. These are typically outside the account&#x27;s primary domain or sub-domain.
808    &quot;A String&quot;,
809  ],
810  &quot;notes&quot;: &quot;&quot;, # Notes for the user.
811  &quot;orgUnitPath&quot;: &quot;A String&quot;, # The full path of the parent organization associated with the user. If the parent organization is the top-level, it is represented as a forward slash (`/`).
812  &quot;organizations&quot;: &quot;&quot;, # A list of organizations the user belongs to. The maximum allowed data size for this field is 10Kb.
813  &quot;password&quot;: &quot;A String&quot;, # User&#x27;s password
814  &quot;phones&quot;: &quot;&quot;, # A list of the user&#x27;s phone numbers. The maximum allowed data size for this field is 1Kb.
815  &quot;posixAccounts&quot;: &quot;&quot;, # A list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user.
816  &quot;primaryEmail&quot;: &quot;A String&quot;, # The user&#x27;s primary email address. This property is required in a request to create a user account. The `primaryEmail` must be unique and cannot be an alias of another user.
817  &quot;recoveryEmail&quot;: &quot;A String&quot;, # Recovery email of the user.
818  &quot;recoveryPhone&quot;: &quot;A String&quot;, # Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: *+16506661212*.
819  &quot;relations&quot;: &quot;&quot;, # A list of the user&#x27;s relationships to other users. The maximum allowed data size for this field is 2Kb.
820  &quot;sshPublicKeys&quot;: &quot;&quot;, # A list of SSH public keys.
821  &quot;suspended&quot;: True or False, # Indicates if user is suspended.
822  &quot;suspensionReason&quot;: &quot;A String&quot;, # Output only. Has the reason a user account is suspended either by the administrator or by Google at the time of suspension. The property is returned only if the `suspended` property is `true`.
823  &quot;thumbnailPhotoEtag&quot;: &quot;A String&quot;, # Output only. ETag of the user&#x27;s photo (Read-only)
824  &quot;thumbnailPhotoUrl&quot;: &quot;A String&quot;, # Output only. Photo Url of the user (Read-only)
825  &quot;websites&quot;: &quot;&quot;, # The user&#x27;s websites. The maximum allowed data size for this field is 2Kb.
826}</pre>
827</div>
828
829<div class="method">
830    <code class="details" id="watch">watch(body=None, customFieldMask=None, customer=None, domain=None, event=None, maxResults=None, orderBy=None, pageToken=None, projection=None, query=None, showDeleted=None, sortOrder=None, viewType=None, x__xgafv=None)</code>
831  <pre>Watches for changes in users list.
832
833Args:
834  body: object, The request body.
835    The object takes the form of:
836
837{ # An notification channel used to watch for resource changes.
838  &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
839  &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
840  &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
841  &quot;kind&quot;: &quot;api#channel&quot;, # Identifies this as a notification channel used to watch for changes to a resource, which is `api#channel`.
842  &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
843    &quot;a_key&quot;: &quot;A String&quot;,
844  },
845  &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
846  &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
847  &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
848  &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
849  &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
850}
851
852  customFieldMask: string, Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.
853  customer: string, Immutable ID of the Google Workspace account. In case of multi-domain, to fetch all users for a customer, fill this field instead of domain.
854  domain: string, Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead.&quot;
855  event: string, Events to watch for.
856    Allowed values
857      add - User Created Event
858      delete - User Deleted Event
859      makeAdmin - User Admin Status Change Event
860      undelete - User Undeleted Event
861      update - User Updated Event
862  maxResults: integer, Maximum number of results to return.
863  orderBy: string, Column to use for sorting results
864    Allowed values
865      email - Primary email of the user.
866      familyName - User&#x27;s family name.
867      givenName - User&#x27;s given name.
868  pageToken: string, Token to specify next page in the list
869  projection: string, What subset of fields to fetch for this user.
870    Allowed values
871      basic - Do not include any custom fields for the user.
872      custom - Include custom fields from schemas mentioned in customFieldMask.
873      full - Include all fields associated with this user.
874  query: string, Query string search. Should be of the form &quot;&quot;. Complete documentation is at https: //developers.google.com/admin-sdk/directory/v1/guides/search-users
875  showDeleted: string, If set to true, retrieves the list of deleted users. (Default: false)
876  sortOrder: string, Whether to return results in ascending or descending order.
877    Allowed values
878      ASCENDING - Ascending order.
879      DESCENDING - Descending order.
880  viewType: string, Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see [Retrieve a user as a non-administrator](/admin-sdk/directory/v1/guides/manage-users#retrieve_users_non_admin).
881    Allowed values
882      admin_view - Results include both administrator-only and domain-public fields.
883      domain_public - Results only include fields for the user that are publicly visible to other users in the domain.
884  x__xgafv: string, V1 error format.
885    Allowed values
886      1 - v1 error format
887      2 - v2 error format
888
889Returns:
890  An object of the form:
891
892    { # An notification channel used to watch for resource changes.
893  &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
894  &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
895  &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
896  &quot;kind&quot;: &quot;api#channel&quot;, # Identifies this as a notification channel used to watch for changes to a resource, which is `api#channel`.
897  &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
898    &quot;a_key&quot;: &quot;A String&quot;,
899  },
900  &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
901  &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
902  &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
903  &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
904  &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
905}</pre>
906</div>
907
908</body></html>