-
Notifications
You must be signed in to change notification settings - Fork 3
/
system_admin_account_operations.yaml
4147 lines (4026 loc) · 136 KB
/
system_admin_account_operations.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
title: "Account Operations: System admin"
description: >-
The official SeaTable API Reference (OpenAPI 3.0).
version: "5.1"
servers:
- url: "https://{server}"
variables:
server:
default: cloud.seatable.io
x-readme:
explorer-enabled: true
metrics-enabled: false
proxy-enabled: false
# why uses /api/v2.1/admin/organizations-basic-info/ query_params? Why not using a body?
# why sometimes base_uuid, sometimes base_id?
# the auth.local has many different descriptions: owner, user_id, username or email. Keeping to the same description would be great.
# is there a possibility to get "internal-links"?
components:
securitySchemes:
AccountTokenAuth:
type: http
scheme: bearer
description: This is the [Account-Token](/reference/authentication).
parameters:
#=======================Query parameters=======================#
page:
name: page
description: The page number you want to start showing the entries. If no value is provided, 1 will be used.
in: query
schema:
type: integer
minimum: 1
example: 1
required: false
per_page:
name: per_page
in: query
schema:
type: integer
minimum: 1
description: The number of results that should be returned. If no value is provided, 25 results will be returned.
example: 25
required: false
name:
name: name
in: query
schema:
type: string
description: Enter any query string from the name of the group.
contact_email:
name: contact_email
in: query
schema:
type: string
pattern: "^.*@.*$"
description: >-
The contact email of the user you're querying. Optional if
`username` is defined.
example: [email protected]
dtable_uuid:
name: dtable_uuid
in: query
schema:
type: string
pattern: '^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$'
required: true
description: The unique identifier of a base. Sometimes also called dtable_uuid.
example: 5c264e76-0e5a-448a-9f34-580b551364ca
return_ancestors:
name: return_ancestors
in: query
schema:
type: boolean
example: "true"
starting_time:
name: start
in: query
schema:
type: string
pattern: ^[0-9]{4}-((0[1-9])|(1[0-2]))?-(([0-2][0-9])|(3[01]))?\+(2[0-3]|[01]?[0-9])(:[0-5]?[0-9]){2}$
description: >-
Starting time of the statistics in ISO format like in the example.
Required.
example: 2021-02-21+00:00:00
ending_time:
name: end
in: query
schema:
type: string
pattern: ^[0-9]{4}-((0[1-9])|(1[0-2]))?-(([0-2][0-9])|(3[01]))?\+(2[0-3]|[01]?[0-9])(:[0-5]?[0-9]){2}$
description: >-
Ending time of the statistics in ISO format like in the example.
Required.
example: 2021-02-24+00:00:00
date:
name: date
in: query
schema:
type: string
pattern: ^[0-9]{4}-((0[1-9])|(1[0-2]))?-(([0-2][0-9])|(3[01]))?\+(2[0-3]|[01]?[0-9])(:[0-5]?[0-9]){2}$
description: The date in ISO format. Required.
example: 2020-06-19+00:00:00
is_user:
name: is_user
in: query
schema:
type: boolean
required: true
description: >-
Whether you'd like to list automation rules triggered by single
users who are not in any teams (`true`) or by teams (`false`). The
usage of `true` here is seldom meaningful for cloud.seatable.io as
all the users in the SeaTable Cloud are team users.
example: "false"
month:
name: month
in: query
schema:
type: string
pattern: ^[0-9]{4}((0[1-9])|1[0-2])$
description: >-
For which month you'd like to list the statistics in the format of
YYYYMM. Statistics of automation rules before 202109 are not
correctly summarized.
example: "202109"
owner:
name: owner
in: query
schema:
type: string
pattern: "^[a-f0-9]{32}(@auth.local)$"
description: >-
The ID of the user you are querying. Optional. If you don't define a
user, all the users are queried.
example: [email protected]
role:
name: role
in: query
schema:
type: string
description: Optional. When left blank, all role types are returned.
example: default
query_user:
name: query
in: query
schema:
type: string
pattern: ^.*@.*$
description: Enter any query string from the user's name, ID, or contact email.
example: [email protected]
parent_dir:
name: parent_dir
in: query
schema:
type: string
example: /asset/
query:
name: query
in: query
schema:
type: string
org_id_query:
name: org_id
in: query
schema:
type: integer
minimum: 1
example: 1
limit:
name: limit
in: query
schema:
type: integer
minimum: 1
description: Limit of search User
example: 10
username:
name: username
in: query
schema:
type: string
description: Who you want to get the notifications of, optional
seen:
name: seen
in: query
schema:
type: integer
enum: [0, 1]
description: Seen status, whether seen or not, 0/1, optional
ignore_asset:
name: ignore_asset
in: query
schema:
type: boolean
example: "false"
description: Set this to `true` to export the base without assets. Default is `false`.
#=======================Path parameters=======================#
base_uuid:
name: base_uuid
in: path
schema:
type: string
pattern: '^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$'
required: true
description: The unique identifier of a base. Sometimes also called dtable_uuid.
example: 5c264e76-0e5a-448a-9f34-580b551364ca
user_id:
name: user_id
description: The unique user id in the form [email protected]. This is not the email address of the user.
in: path
schema:
type: string
pattern: "^[a-f0-9]{32}(@auth.local)$"
required: true
example: [email protected]
org_id:
name: org_id
in: path
schema:
type: integer
minimum: 1
required: true
description: >-
The id of your team/organization. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you
are not the admin.
example: 1
base_id:
name: base_id
description: The id of the base. This is not the base_uuid.
in: path
schema:
type: string
required: true
example: base_id
automation_rule_id:
name: automation_rule_id
in: path
schema:
type: integer
minimum: 1
required: true
example: 10
notification_rule_id:
name: notification_rule_id
in: path
schema:
type: integer
minimum: 1
required: true
example: 2
collection_table_token:
name: collection_table_token
in: path
schema:
type: string
pattern: ^[0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$
required: true
example: 12345678-d378-4c12-8d7a-6da0fb48ee83
sync_id:
name: sync_id
in: path
schema:
type: integer
minimum: 1
required: true
description: >-
The ID of the invalid synchronization, retrievable from the previous
call.
example: 2
parent_department_id:
name: parent_department_id
in: path
schema:
type: integer
required: true
description: Optional. -1 by default.
example: 1
department_id:
name: department_id
in: path
schema:
type: integer
minimum: 1
required: true
example: 1
external_link_token:
name: external_link_token
in: path
schema:
type: string
required: true
example: fleischkaesebroetchen
view_external_link_token:
name: view_external_link_token
in: path
schema:
type: string
pattern: ^[a-f0-9]{20}$
required: true
example: "1f0447eab4df4343ab6d"
form_token:
name: form_token
in: path
schema:
type: string
pattern: ^[0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$
required: true
example: "12345678-d378-4c12-8d7a-6da0fb48ee83"
plugin_id:
name: plugin_id
in: path
schema:
type: integer
minimum: 1
required: true
example: 5
sys_notification_id:
name: sys_notification_id
in: path
schema:
type: integer
required: true
example: 1
group_id:
name: group_id
in: path
schema:
type: integer
minimum: 1
required: true
example: 48
abuse_report_id:
name: abuse_report_id
in: path
schema:
type: integer
minimum: 1
required: true
example: 1
task_id:
name: task_id
in: path
schema:
type: string
required: true
example: "5f81ae15-a818-4990-889c-e38e33f02b4a"
schemas:
msg:
type: string
example: "Hello user!"
username:
type: string
example: "[email protected]"
system_admin_force_2fa:
type: boolean
description: Enforce Two Factor for all accounts
email:
type: string
description: Login email of the user.
example: username_test
system_admin_password:
type: string
description: Login password of the user.
example: password_test
system_admin_name:
type: string
description: Full name of the user.
example: Example User
is_staff:
type: boolean
description: "`true` or `false` if the user will be an (system) admin. `false` by default."
default: false
system_admin_is_admin:
type: boolean
description: "`true` or `false` if the user will be an (team) admin. `false` by default."
default: false
is_active:
type: boolean
description: >-
`true` or `false` if the user could log in. `true` by
default.
default: true
active:
type: boolean
description: >-
`true` or `false` if the user could log in. `true` by
default.
default: true
role:
type: string
description: >-
Update their role. For details about roles, refer to
[SeaTable Roles and
Permissions](https://manual.seatable.io/config/enterprise/roles_permissions/).
login_id:
type: string
description: >-
Optional login ID. Valid only if the system configuration
allows login ID.
contact_email:
type: string
description: The contact email address of the user.
id_in_org:
type: string
description: >-
The team ID of the user, could be a student's ID or employee
ID. String.
unit:
type: string
description: >-
Business unit. Only valid if the system configuration allows
the feature.
institution:
type: string
description: >-
Institution. Only valid if the system configuration allows
the feature.
row_limit:
type: integer
description: User's total row limit in number. For example 10000.
example: "50000"
quota_total:
type: string
description: Update their total quota in MB.
asset_quota_mb:
type: string
description: The asset quota in MB.
file:
type: string
format: binary
org_name:
type: string
description: "Name of the team."
example: Demo Testing
admin_email:
type: string
description: >-
Login email of the team administrator. Required. Has to be
unique in the system.
example: username
admin_name:
type: string
description: Full name of the team administrator. Optional.
example: Max Example
with_workspace:
type: boolean
description: >-
If a workspace should be automatically created for the user.
Optional. `false` by default.
example: "true"
max_user_number:
type: string
description: The maximum user number.
system_admin_group_name:
type: string
description: The name of the new department.
example: Test department
group_quota:
type: integer
description: The quota in MB.
parent_group:
type: string
description: The ID of the parent department. Optional. -1 by default.
example: parent_department_id
handled:
type: boolean
description: >-
Required. Use `true` or `false` to mark the status of the
report.
example: "true"
plugin:
type: string
description: Path and file name to the plugin file.
format: binary
SITE_TITLE:
type: string
description: >-
The title of your SeaTable web interface, like appeared on
the browser tab. Optional. Default value is `SeaTable
Private`.
example: SeaTable Private
SITE_NAME:
type: string
description: >-
The name of your site, like appeared in the notification
emails. Optional. Default value is `SeaTable`.
example: SeaTable
ENABLE_BRANDING_CSS:
type: integer
description: >-
If a custom CSS should be used. Optional, `0` by default. If
set to `1`, paste your CSS into the param `CUSTOM_CSS`.
example: "0"
CUSTOM_CSS:
type: string
description: The content of your custom CSS. Optional. Empty by default.
example: " "
ACTIVATE_AFTER_REGISTRATION:
type: integer
description: >-
If users should be automatically activated after the
registration. Optional, `1` by default. If `0`, then the
user need to be activated by the administrator or via the
activation email.
example: "1"
REGISTRATION_SEND_MAIL:
type: integer
description: >-
If an activation email should be sent after the user has
registered. Optional, `0` by default.
example: "0"
LOGIN_REMEMBER_DAYS:
type: integer
description: >-
How many default days a user could be kept signed in.
Optional, `7` by default.
example: "7"
LOGIN_ATTEMPT_LIMIT:
type: integer
description: >-
The maximum number of failed login attempts before showing
CAPTCHA. Optional, `5` by default.
example: "5"
FREEZE_USER_ON_LOGIN_FAILED:
type: integer
description: >-
If the user's account should be frozen when they exceed the
login attempts limit. Optional, `0` by default.
example: "0"
USER_STRONG_PASSWORD_REQUIRED:
type: integer
description: >-
Force the users to use a strong password when signing up or
changing password. Optional, `0` by default.
example: "0"
FORCE_PASSWORD_CHANGE:
type: integer
description: >-
Force newly added users to change their password, or when
the admin resets their password. Optional, `1` by default.
example: "1"
USER_PASSWORD_MIN_LENGTH:
type: integer
description: >-
The minimum length of user passwords. Optional, `6` by
default.
example: "6"
USER_PASSWORD_STRENGTH_LEVEL:
type: integer
description: >-
The level (`1`-`4`) of a password's strength. For example,
`3` means password must have at least 3 of the following: a
number, an upper letter, a lower letter and a special
symbol. Optional, `3` by default.
example: "3"
ENABLE_TWO_FACTOR_AUTH:
type: integer
description: >-
If two factor authentication should be activated for the
system. Optional, `0` by default.
example: "0"
ENABLE_SIGNUP:
type: integer
description: >-
If registration on the web interface is allowed. Optional,
`0` by default.
example: "1"
logo:
type: string
description: The path and filename of the image file of your logo.
format: binary
favicon:
type: string
description: The path and filename of the image file of your favicon.
format: binary
with_notify:
type: boolean
description: >-
Leave this param as its default (`false`) to upload your
favicon, and use this param as `true` to upload a favicon
with a notification sign.
example: "true"
login_bg_image:
type: string
description: The path and filename of the background image.
format: binary
update_admins_role:
type: object
properties:
email:
type: string
description: >-
The ID of another administrator user. **Never use your own
ID here!**
example: other_admin_id
role:
type: string
description: >-
The desired role of the administrator user. Use
`default_admin`, `system_admin`, `daily_admin`, or
`audit_admin`. See the table above for details.
example: default_admin
paths:
# Users
/api/v2.1/admin/users/:
get:
tags:
- Users
summary: List Users
operationId: listUsers
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/page"
- $ref: "#/components/parameters/per_page"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
data:
- email: [email protected]
name: admin
contact_email: [email protected]
login_id: ""
is_staff: true
is_active: true
create_time: "2019-11-13T11:07:24+00:00"
last_login: "2020-12-04T16:10:20+00:00"
role: default
storage_usage: 2853
rows_count: 6
- email: [email protected]
name: Daniel
contact_email: [email protected]
login_id: ""
is_staff: false
is_active: true
create_time: "2019-11-14T02:25:39+00:00"
last_login: "2020-12-03T08:21:22+00:00"
role: guest
storage_usage: 1721496
rows_count: 142
total_count: 2000
post:
tags:
- Users
summary: Add New User
operationId: addNewUser
description: Add a new user with desired details.
requestBody:
content:
application/json:
schema:
type: object
properties:
email:
$ref: "#/components/schemas/email"
password:
$ref: "#/components/schemas/system_admin_password"
name:
$ref: "#/components/schemas/system_admin_name"
is_staff:
$ref: "#/components/schemas/is_staff"
is_active:
$ref: "#/components/schemas/is_active"
security:
- AccountTokenAuth: []
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
email: [email protected]
name: Example User
contact_email: [email protected]
login_id: ""
id_in_org: ""
is_staff: false
is_active: true
create_time: "2021-03-17T13:52:40+00:00"
role: default
add_user_tip: >-
Successfully added user [email protected]. An email
notification has been sent.
/api/v2.1/admin/users/{user_id}/:
get:
tags:
- Users
summary: Get User
operationId: getUser
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/user_id"
responses:
"403":
description: Successful response
content:
application/json: {}
put:
tags:
- Users
summary: Update User
operationId: updateUser
description: >-
Update a user's details. See the parameter list for the detailed
description of each entry.
requestBody:
content:
application/json:
schema:
type: object
properties:
is_staff:
$ref: "#/components/schemas/is_staff"
is_active:
$ref: "#/components/schemas/is_active"
role:
$ref: "#/components/schemas/role"
name:
$ref: "#/components/schemas/system_admin_name"
login_id:
$ref: "#/components/schemas/login_id"
contact_email:
$ref: "#/components/schemas/contact_email"
id_in_org:
$ref: "#/components/schemas/id_in_org"
unit:
$ref: "#/components/schemas/unit"
password:
$ref: "#/components/schemas/system_admin_password"
institution:
$ref: "#/components/schemas/institution"
row_limit:
$ref: "#/components/schemas/row_limit"
quota_total:
$ref: "#/components/schemas/quota_total"
asset_quota_mb:
$ref: "#/components/schemas/asset_quota_mb"
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/user_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
email: [email protected]
name: Michael Jackson
contact_email: [email protected]
unit: ""
login_id: ""
id_in_org: "013"
is_staff: false
is_active: true
phone: ""
org_id: 176
org_name: SeaTable GmbH
create_time: "2020-11-18T12:30:31+00:00"
role: default
update_status_tip: ""
delete:
tags:
- Users
summary: Delete User
operationId: deleteUser
description: >-
Delete a user by their ID.
If the user is in a team, you cannot delete them with this request, but
with the request [Delete Team User](/reference/deleteteamuser).
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/user_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
success: true
/api/v2.1/admin/admin-users/:
get:
tags:
- Users
summary: List Admin Users
operationId: listAdminUsers
description: List all the system administrators in the current system.
security:
- AccountTokenAuth: []
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
admin_user_list:
- email: [email protected]
name: admin
contact_email: [email protected]
login_id: ""
is_staff: true
is_active: true
storage_usage: 9477804
rows_count: 6
create_time: "2019-11-13T11:07:24+00:00"
last_login: "2021-03-17T13:53:59+00:00"
admin_role: default_admin
/api/v2.1/admin/admin-role/:
put:
tags:
- Users
summary: Update Admin's Role
operationId: updateAdminRole
description: >-
> Use this request with caution!!
> -
> Do not change your own role! Once your role has been changed, you
**cannot use this API request to change it back**: You'll get a
permission error, and lose access to a majority of admin functions. If
you already did that, the only solution left for you is to login as
another superuser and change your role back with that account. If
there's no further superuser available, you can create one. Don't
remember how to create a superuser? Read the
[Manual](https://manual.seatable.io/).
### There are 4 types of system administrators:
- default admin (can use this request)
- system admin (cannot use this request)
- daily admin (cannot use this request)
- audit admin (cannot use this request)
The default admin has the most permissions, while the other 3 types have
limited permissions:
| Permissions | Default admin | Daily admin |
System admin | Audit admin |
| -------------:
|:--------------------:|:--------------------:|:--------------------:|:--------------------:|
| Info | ✓ | ✓ | ✓ | ✓ |
| Statistics | ✓ | ✓ |
| |
| Settings | ✓ | | ✓
| |
| Bases | ✓ | |
| |
| Forms | ✓ | |
| |
| Users | ✓ | ✓ |
| |
| Groups | ✓ | ✓ |
| |
| External links | ✓ | |
| |
| Organizations | ✓ | |
| |
| Notifications | ✓ | |
| |
| Administrator-logs | ✓ | |
| ✓ |
| Plugins | ✓ | |
| |
| Rules | ✓ | |
| |
| Abuse reports | ✓ | |
| |
| Scripts | ✓ | |
| |
| Email sending logs | ✓ | |
| |
### Do not change your own admin role
As seen from the table above - If you change your role from "default
admin" to "system admin" or "audit admin", you won't be able to change
it back because the "Users" page is gone.
### What to do if you already did that
Add another super user, login as that super user and change your role
back. Unfortunately, you cannot do this with the API. Refer to [SeaTable
Admin Manual - Starting SeaTable
Server](https://manual.seatable.io/docker/Developer-Edition/Deploy%20SeaTable-DE%20with%20Docker/#starting-seatable-server)
for details.
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/update_admins_role"
security:
- AccountTokenAuth: []
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
email: [email protected]
role: default_admin
/api/v2.1/admin/users/{user_id}/reset-password/:
put:
tags:
- Users
summary: Reset User's Password
operationId: resetUserPassword
description: Reset a user's password.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/user_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
new_password: 758ITxYjNM
reset_tip: >-
Successfully reset password to 758ITxYjNM, an email has been
sent to [email protected].
/api/v2.1/admin/users/{user_id}/two-factor-auth/:
put:
tags:
- Users
summary: Enforce 2FA
operationId: enforceTwoFactor
description: >-
As the system administrator, you can force each user to use 2-factor
authentication (2FA).
When the value of `force_2fa` is `1` in this request, the user will be
requested to activate 2FA by scanning a QR code next time they log in.
To cancel enforcing them to use 2FA, change the value to `0` and send
this request again.