-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathusers.yaml
963 lines (962 loc) · 34.1 KB
/
users.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
openapi: 3.0.0
info:
title: Users API
version: 1.0.0
description:
The Medallia Users API enables auditing and management of user accounts
in Medallia Experience Cloud. User accounts belong to one or more roles
that define features and permissions.
termsOfService: https://medallia.com/about/legal/terms/api
servers:
- url: 'https://{api-gateway-hostname}'
variables:
api-gateway-hostname:
default: instance-tenant.apis.medallia.com
description:
The Medallia Experience Cloud hostname used to access
Medallia Reporting
paths:
/admin/v1/users:
get:
tags:
- Users
description: Lists all users
operationId: listUsers
parameters:
- name: companyAccountId
in: query
description: The company account id to filter results
required: false
schema:
type: array
items:
type: string
style: form
explode: false
- name: username
in: query
description: The user name to filter results
required: false
schema:
type: array
items:
type: string
style: form
explode: false
- name: role
in: query
description: The role name to filter results
required: false
schema:
type: string
- name: status
in: query
description: The user status to filter results
required: false
schema:
type: string
enum:
- active
- inactive
- name: limit
in: query
description: The maximum number of items to return per page
required: false
schema:
type: integer
- name: cursor
in: query
description:
The token from the previous response, used to return the next
page of data
required: false
schema:
type: string
responses:
200:
description: The users that match the filters provided
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/UserList'
401:
description: Unauthorized
403:
description: Forbidden
404:
description: Object not found
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
412:
description: Precondition failed
500:
description: Internal server error
security:
- mecOauth: []
post:
tags:
- Users
description: Creates a new user
operationId: createUser
requestBody:
description: The user to create
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/User'
parameters:
- in: header
name: X-Medallia-Send-New-User-Email
description:
A request header indicating the configured email template for
new users should be sent to the user being created. If
unspecified or set to `false`, no email is sent after a new
user is created.
required: false
schema:
type: string
enum:
- true
- false
responses:
200:
description: The created user account
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/User'
400:
description: Validations failed while performing the request
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
401:
description: Unauthorized
403:
description: Forbidden
412:
description: Precondition failed
500:
description: Internal server error
security:
- mecOauth: []
/admin/v1/users/{username}:
get:
tags:
- Users
description: Returns a single user account
operationId: getByUserName
parameters:
- in: path
name: username
description: The username of the account
required: true
schema:
type: string
format: identifier
responses:
200:
description: The user account details
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/User'
401:
description: Unauthorized
403:
description: Forbidden
404:
description: Object not found
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
412:
description: Precondition failed
500:
description: Internal server error
security:
- mecOauth: []
put:
tags:
- Users
description:
Create or update the user account specified
operationId: upsertUser
parameters:
- name: username
in: path
description: The account's username identifier
required: true
schema:
type: string
format: identifier
- in: header
name: X-Medallia-Send-New-User-Email
description:
A request header indicating the configured email template for
new users should be sent to the user being created. If
unspecified or set to `false`, no email is sent after a new
user is created.
required: false
schema:
type: string
enum:
- true
- false
requestBody:
description: The user to create
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/User'
responses:
200:
description: The created user account
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/User'
400:
description: Validations failed while performing the request
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
401:
description: Unauthorized
403:
description: Forbidden
412:
description: Precondition failed
500:
description: Internal server error
security:
- mecOauth: []
/admin/v1/users/{username}/actions/{action}:
post:
tags:
- Users
description: Perform the specified action on the user account
operationId: userAction
parameters:
- in: path
name: username
description: The account's username
required: true
schema:
type: string
format: identifier
- in: path
name: action
description: The action to perform on the user account
required: true
schema:
type: string
enum:
- reset-password
- activate
- inactive
responses:
204:
description: The action was successfully executed
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
400:
description: An error occured processing the request
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
401:
description: Unauthorized
403:
description: Forbidden
404:
description: Object not found
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
412:
description: Precondition failed
500:
description: Internal server error
security:
- mecOauth: []
/admin/v1/users/{username}/data-access:
put:
tags:
- Users
description: Update a user's data access rules
operationId: putDataAccess
parameters:
- in: path
name: username
description: The account's username identifier
required: true
schema:
type: string
format: identifier
requestBody:
description: The data access rules to apply to the user account
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UserDataAccess'
responses:
200:
description: The updated data access rules
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/User'
400:
description: Validations failed while performing the request
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
401:
description: Unauthorized
403:
description: Forbidden
412:
description: Precondition failed
500:
description: Internal server error
security:
- mecOauth: []
/admin/v1/users-bulk-download:
get:
tags:
- Users
description: Downloads the list of users to an Excel-compatible spreadsheet
operationId: bulkDownloadUsers
parameters:
- name: role
in: query
description: The role name to filter results
required: false
schema:
type: array
items:
type: string
style: form
explode: false
- name: id
in: query
description: The user id to filter results
required: false
schema:
type: array
items:
type: string
style: form
explode: false
- name: q
in: query
description: The search query to filter results
required: false
schema:
type: string
- name: status
in: query
description: The user status to filter results
required: false
schema:
type: string
enum:
- active
- inactive
responses:
200:
description: The users that match the filters provided
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
text/csv:
schema:
$ref: '#/components/schemas/UserBulkDownload'
examples:
csv table:
summary: CSV
value: >
username,firstname,lastname,email,phone,company_account_id,status,no_automatic_update,primary_role,roles,...
cc_agent_735,Pat,Rowe,[email protected],555-867-5309,,ACTIVE,true,Frontline,,...
401:
description: Unauthorized
403:
description: Forbidden
404:
description: Object not found
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
412:
description: Precondition failed
500:
description: Internal server error
security:
- mecOauth: []
components:
headers:
X-RateLimit-Limit-day:
description: The number of requests allowed in total in a 24-hour period. Deprecated as of Sept. 2022 in favor of X-RateLimit-Limit.
schema:
type: integer
example: 10000
deprecated: true
X-RateLimit-Remaining-day:
description: The number of requests available to make in a 24-hour period. Deprecated as of Sept. 2022 in favor of X-RateLimit-Remaining.
schema:
type: integer
example: 10000
deprecated: true
X-RateLimit-Limit-second:
description: The number of requests allowed in total in a 1-second period. Deprecated as of Sept. 2022 in favor of X-RateLimit-Limit.
schema:
type: integer
example: 10
deprecated: true
X-RateLimit-Remaining-second:
description: The number of requests available to make in a 1-second period. Deprecated as of Sept. 2022 in favor of X-RateLimit-Remaining.
schema:
type: integer
example: 10
deprecated: true
X-RateLimit-Limit:
description:
Indicates the request quota closest to reaching its limit
amongst all available quotas. Follows the semantics of
[IETF draft-polli-ratelimit-headers](https://datatracker.ietf.org/doc/html/draft-polli-ratelimit-headers).
schema:
type: string
example: 10, 10;w=1, 100;w=86400
X-RateLimit-Remaining:
description:
Indicates the number of requests remaining in the quota that is
closest to expiring (as indicated by `X-RateLimit-Limit`).
Follows the semantics of
[IETF draft-polli-ratelimit-headers](https://datatracker.ietf.org/doc/html/draft-polli-ratelimit-headers).
schema:
type: integer
example: 10
X-RateLimit-Reset:
description:
Indicates the number of seconds remaining until the quota
resets. Follows the semantics of
[IETF draft-polli-ratelimit-headers](https://datatracker.ietf.org/doc/html/draft-polli-ratelimit-headers).
schema:
type: integer
example: 10
X-Medallia-Rpc-Request-Id:
description: The request ID, used by Medallia support for troubleshooting
schema:
type: string
format: identifier
example: 94615edd-d9d0-4921-8b3e-60615b3d3431
schemas:
UserList:
description: A list of users
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/User'
_next:
type: object
properties:
href:
type: string
description: Link to the next page in the result set
maxLength: 10240
User:
type: object
required:
- first_name
- last_name
- roles
- username
properties:
username:
type: string
format: identifier
description: The username used to identify the account
maxLength: 10240
pattern: ^[a-zA-Z0-9\\-_.@]+$
first_name:
type: string
description: The first name of the user
maxLength: 10240
last_name:
type: string
description: The last name of the user
maxLength: 10240
email:
type: string
format: email
description: The email address of the user
phone:
type: string
description: The phone number of the user
maxLength: 10240
automatic_update:
type: boolean
description:
Indicates whether the user account is able to be automatically
updated by Medallia ETL processes
excluded_from_user_activity:
type: boolean
description:
Indicates whether the user account is included in
`user-activity-account-split` nodes in Medallia AA2 reports
company_account_id:
type: string
description:
The user's account ID in the company's authentication systems,
set automatically during auto-logon processes
maxLength: 10240
login_blocked:
type: boolean
description:
Indicates whether the direct-to-Medallia user logins are
blocked and, as a consequence, password resets are also blocked.
This has no bearing on SSO-based authentication or mobile access
codes.
data-access:
$ref: '#/components/schemas/UserDataAccess'
roles:
type: object
description: The roles of which this account is a member
required:
- primary_role
- extra_roles
properties:
primary_role:
type: object
description:
The primary role of this account, which acts as the
default role
required:
- role
properties:
role:
type: string
format: identifier
maxLength: 10240
extra_roles:
type: array
description: Secondary roles of this account
items:
type: object
required:
- role
properties:
role:
type: string
format: identifier
maxLength: 10240
_system_properties:
readOnly: true
type: object
properties:
status:
type: string
readOnly: true
description: Indicates whether the account is active
enum:
- ACTIVE
- INACTIVE
created_on:
type: string
format: date-time
readOnly: true
description:
The timestamp when the user account was created, in
ISO-8601 format `yyyy-MM-dd'T'HH:mm:ss.SSSZZ`
created_by:
type: string
readOnly: true
description:
The username of the account or the role of the OAuth 2.0
account that created this account (if manual) or
`null` (if the account was created through system-driven
processes such as SSO)
maxLength: 10240
modified_on:
type: string
format: date-time
readOnly: true
description:
The timestamp when the user account was last modified, in
ISO-8601 format `yyyy-MM-dd'T'HH:mm:ss.SSSZZ`
modified_by:
type: string
readOnly: true
description:
The username of the account or the role of the OAuth 2.0
account that last modified this account (if manual) or
`null` (if the account was last modified through system-driven
processes such as SSO)
maxLength: 10240
login_blocked_reason:
type: string
readOnly: true
description:
A human-friendly explanation of why a user account may be
blocked
enum:
- TOO_MANY_FAILED_LOGINS
- TOO_MANY_PASSWORD_RESETS
- MANUAL_BLOCK
last_login:
type: string
format: date-time
readOnly: true
description:
The timestamp when the user account last authenticated, in
ISO-8601 format `yyyy-MM-dd'T'HH:mm:ss.SSSZZ`
login_count:
type: integer
format: int32
readOnly: true
description: The number of successful authentications for the user
failed_login_count:
type: integer
format: int32
readOnly: true
description:
The number of sequential, unsuccessful authentications
password_last_set:
type: string
format: date-time
readOnly: true
description:
The timestamp when the account's password was last set, in
ISO-8601 format `yyyy-MM-dd'T'HH:mm:ss.SSSZZ`
password_last_emailed:
type: string
format: date-time
readOnly: true
description:
The timestamp when a password reset link for the account
was last emailed, in ISO-8601 format `yyyy-MM-dd'T'HH:mm:ss.SSSZZ`
password_not_set_reason:
type: string
readOnly: true
description: The reason why the password is not set for the account
enum:
- PASSWORD_RESET
- PASSWORD_EXPIRED
- PASSWORD_INSECURE
- NEW_ACCOUNT
UserBulkDownload:
type: object
properties:
foo:
type: string
UserDataAccess:
type: object
description:
Data access ensures a user only sees the records for which they
have permission
properties:
organization:
type: array
description: An association between a role and a unit group
items:
type: object
required:
- role
- unit_group
properties:
role:
type: string
format: identifier
description: Role where this data access is available
maxLength: 10240
data_view:
type: string
format: identifier
description: Data view where this data access is available
maxLength: 10240
unit_group:
type: string
format: identifier
description: Unit group in the organization hierarchy
maxLength: 10240
unit_group_display_name:
type: string
description: Display name for the Unit Group
maxLength: 10240
segments:
type: array
description:
Segments associates the role with records meeting a specific
criteria based on field values in the record
items:
type: object
description: Reference to a survey field
required:
- field
- role
properties:
role:
type: string
format: identifier
description: Role where this data access is available
maxLength: 10240
data_view:
type: string
format: identifier
description: Data view where this data access is available
maxLength: 10240
field:
type: string
description: Survey Field key
maxLength: 10240
field_display_name:
type: string
description: Display name of the Survey Field
maxLength: 10240
option:
type: string
description: Field option value
maxLength: 10240
securitySchemes:
mecOauth:
type: oauth2
flows:
clientCredentials:
tokenUrl: https://{reporting-hostname}/oauth/{company}/token
scopes: {}
security:
- mecOauth: []