You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Applies when server setting 'Authentication.Provider' is set to 'ldap', 'oauth2', 'pam', 'password', 'proxy', or 'saml'.
183
150
184
151
Parameters
185
152
----------
186
-
username : str
153
+
username : str, required
187
154
The user's desired username.
188
-
password : str, optional
189
-
Applies when server setting 'Authentication.Provider="password"'. Cannot be set when `user_must_set_password` is `True`. Default is `None`.
190
-
user_must_set_password : bool, optional
155
+
password : str, not required
156
+
Applies when server setting 'Authentication.Provider="password"'. Cannot be set when `user_must_set_password` is `True`.
157
+
user_must_set_password : bool, not required
191
158
If `True`, the user is prompted to set their password on first login. When `False`, the `password` parameter is used. Default is `False`. Applies when server setting 'Authentication.Provider="password"'.
The user role. Default is `None`. Options are `'administrator'`, `'publisher'`, `'viewer'`. Falls back to server setting 'Authorization.DefaultUserRole'.
200
-
unique_id : str, optional
201
-
Default is `None`. Required when server is configured with SAML or OAuth2 (non-Google) authentication. Applies when server setting `ProxyAuth.UniqueIdHeader` is set.
159
+
email : str, not required
160
+
The user's email address.
161
+
first_name : str, not required
162
+
The user's first name.
163
+
last_name : str, not required
164
+
The user's last name.
165
+
user_role : Literal["administrator", "publisher", "viewer"], not required
166
+
The user role. Options are `'administrator'`, `'publisher'`, `'viewer'`. Falls back to server setting 'Authorization.DefaultUserRole'.
167
+
unique_id : str, maybe required
168
+
Required when server is configured with SAML or OAuth2 (non-Google) authentication. Applies when server setting `ProxyAuth.UniqueIdHeader` is set.
202
169
203
170
Returns
204
171
-------
@@ -229,63 +196,30 @@ def create(
229
196
... user_role="viewer",
230
197
... )
231
198
"""
232
-
...
233
-
234
-
@overload
235
-
defcreate(self, **attributes) ->User:
236
-
"""
237
-
Create a user with the specified attributes.
238
-
239
-
Parameters
240
-
----------
241
-
**attributes
242
-
Arbitrary keyword arguments representing user attributes.
243
-
244
-
Returns
245
-
-------
246
-
User
247
-
The newly created user.
248
-
"""
249
-
...
250
-
251
-
defcreate(self, **attributes) ->User:
252
-
"""
253
-
Create a user.
254
-
255
-
Parameters
256
-
----------
257
-
**attributes
258
-
Arbitrary keyword arguments representing user attributes.
259
-
260
-
Returns
261
-
-------
262
-
User
263
-
The newly created user.
264
-
"""
265
199
# todo - use the 'context' module to inspect the 'authentication' object and route to POST (local) or PUT (remote).
Filter by user role. Options are `'administrator'`, `'publisher'`, `'viewer'`. Use `'|'` to represent logical OR (e.g., `'viewer|publisher'`). Default is `None`.
Filter by account status. Options are `'locked'`, `'licensed'`, `'inactive'`. Use `'|'` to represent logical OR. For example, `'locked|licensed'` includes users who are either locked or licensed. Default is `None`.
217
+
prefix : str, not required
218
+
Filter users by prefix (username, first name, or last name). The filter is case-insensitive.
219
+
user_role : Literal["administrator", "publisher", "viewer"], not required
220
+
Filter by user role. Options are `'administrator'`, `'publisher'`, `'viewer'`. Use `'|'` to represent logical OR (e.g., `'viewer|publisher'`).
221
+
account_status : Literal["locked", "licensed", "inactive"], not required
222
+
Filter by account status. Options are `'locked'`, `'licensed'`, `'inactive'`. Use `'|'` to represent logical OR. For example, `'locked|licensed'` includes users who are either locked or licensed.
0 commit comments