@@ -595,6 +595,10 @@ def search_all(
595
595
sort : Optional [List [Sort ]] = None ,
596
596
text : Optional [str ] = None ,
597
597
login_ids : Optional [List [str ]] = None ,
598
+ from_created_time : Optional [int ] = None ,
599
+ to_created_time : Optional [int ] = None ,
600
+ from_modified_time : Optional [int ] = None ,
601
+ to_modified_time : Optional [int ] = None ,
598
602
) -> dict :
599
603
"""
600
604
Search all users.
@@ -614,6 +618,10 @@ def search_all(
614
618
text (str): Optional string, allows free text search among all user's attributes.
615
619
login_ids (List[str]): Optional list of login ids
616
620
sort (List[Sort]): Optional List[dict], allows to sort by fields.
621
+ from_created_time (int): Optional int, only include users who were created on or after this time (in Unix epoch milliseconds)
622
+ to_created_time (int): Optional int, only include users who were created on or before this time (in Unix epoch milliseconds)
623
+ from_modified_time (int): Optional int, only include users whose last modification/update occurred on or after this time (in Unix epoch milliseconds)
624
+ to_modified_time (int): Optional int, only include users whose last modification/update occurred on or before this time (in Unix epoch milliseconds)
617
625
618
626
Return value (dict):
619
627
Return dict in the format
@@ -667,6 +675,15 @@ def search_all(
667
675
if sort is not None :
668
676
body ["sort" ] = sort_to_dict (sort )
669
677
678
+ if from_created_time is not None :
679
+ body ["fromCreatedTime" ] = from_created_time
680
+ if to_created_time is not None :
681
+ body ["toCreatedTime" ] = to_created_time
682
+ if from_modified_time is not None :
683
+ body ["fromModifiedTime" ] = from_modified_time
684
+ if to_modified_time is not None :
685
+ body ["toModifiedTime" ] = to_modified_time
686
+
670
687
response = self ._auth .do_post (
671
688
MgmtV1 .users_search_path ,
672
689
body = body ,
@@ -688,6 +705,10 @@ def search_all_test_users(
688
705
sort : Optional [List [Sort ]] = None ,
689
706
text : Optional [str ] = None ,
690
707
login_ids : Optional [List [str ]] = None ,
708
+ from_created_time : Optional [int ] = None ,
709
+ to_created_time : Optional [int ] = None ,
710
+ from_modified_time : Optional [int ] = None ,
711
+ to_modified_time : Optional [int ] = None ,
691
712
) -> dict :
692
713
"""
693
714
Search all test users.
@@ -705,6 +726,10 @@ def search_all_test_users(
705
726
text (str): Optional string, allows free text search among all user's attributes.
706
727
login_ids (List[str]): Optional list of login ids
707
728
sort (List[Sort]): Optional List[dict], allows to sort by fields.
729
+ from_created_time (int): Optional int, only include users who were created on or after this time (in Unix epoch milliseconds)
730
+ to_created_time (int): Optional int, only include users who were created on or before this time (in Unix epoch milliseconds)
731
+ from_modified_time (int): Optional int, only include users whose last modification/update occurred on or after this time (in Unix epoch milliseconds)
732
+ to_modified_time (int): Optional int, only include users whose last modification/update occurred on or before this time (in Unix epoch milliseconds)
708
733
709
734
Return value (dict):
710
735
Return dict in the format
@@ -758,6 +783,15 @@ def search_all_test_users(
758
783
if sort is not None :
759
784
body ["sort" ] = sort_to_dict (sort )
760
785
786
+ if from_created_time is not None :
787
+ body ["fromCreatedTime" ] = from_created_time
788
+ if to_created_time is not None :
789
+ body ["toCreatedTime" ] = to_created_time
790
+ if from_modified_time is not None :
791
+ body ["fromModifiedTime" ] = from_modified_time
792
+ if to_modified_time is not None :
793
+ body ["toModifiedTime" ] = to_modified_time
794
+
761
795
response = self ._auth .do_post (
762
796
MgmtV1 .test_users_search_path ,
763
797
body = body ,
0 commit comments