@@ -298,6 +298,11 @@ def __init__(self, api_client=None):
298298 "attribute" : "filter[status]" ,
299299 "location" : "query" ,
300300 },
301+ "filter_handle" : {
302+ "openapi_types" : (str ,),
303+ "attribute" : "filter[handle]" ,
304+ "location" : "query" ,
305+ },
301306 },
302307 headers_map = {
303308 "accept" : ["application/json" ],
@@ -579,6 +584,7 @@ def list_users(
579584 sort_dir : Union [QuerySortOrder , UnsetType ] = unset ,
580585 filter : Union [str , UnsetType ] = unset ,
581586 filter_status : Union [str , UnsetType ] = unset ,
587+ filter_handle : Union [str , UnsetType ] = unset ,
582588 ) -> UsersResponse :
583589 """List all users.
584590
@@ -602,6 +608,9 @@ def list_users(
602608 Comma separated list, with possible values ``Active`` , ``Pending`` , and ``Disabled``.
603609 Defaults to no filtering.
604610 :type filter_status: str, optional
611+ :param filter_handle: Filter on the exact user handle. This filter also returns Datadog-managed users,
612+ which the list otherwise excludes. Defaults to no filtering.
613+ :type filter_handle: str, optional
605614 :rtype: UsersResponse
606615 """
607616 kwargs : Dict [str , Any ] = {}
@@ -623,6 +632,9 @@ def list_users(
623632 if filter_status is not unset :
624633 kwargs ["filter_status" ] = filter_status
625634
635+ if filter_handle is not unset :
636+ kwargs ["filter_handle" ] = filter_handle
637+
626638 return self ._list_users_endpoint .call_with_http_info (** kwargs )
627639
628640 def list_users_with_pagination (
@@ -634,6 +646,7 @@ def list_users_with_pagination(
634646 sort_dir : Union [QuerySortOrder , UnsetType ] = unset ,
635647 filter : Union [str , UnsetType ] = unset ,
636648 filter_status : Union [str , UnsetType ] = unset ,
649+ filter_handle : Union [str , UnsetType ] = unset ,
637650 ) -> collections .abc .Iterable [User ]:
638651 """List all users.
639652
@@ -656,6 +669,9 @@ def list_users_with_pagination(
656669 Comma separated list, with possible values ``Active`` , ``Pending`` , and ``Disabled``.
657670 Defaults to no filtering.
658671 :type filter_status: str, optional
672+ :param filter_handle: Filter on the exact user handle. This filter also returns Datadog-managed users,
673+ which the list otherwise excludes. Defaults to no filtering.
674+ :type filter_handle: str, optional
659675
660676 :return: A generator of paginated results.
661677 :rtype: collections.abc.Iterable[User]
@@ -679,6 +695,9 @@ def list_users_with_pagination(
679695 if filter_status is not unset :
680696 kwargs ["filter_status" ] = filter_status
681697
698+ if filter_handle is not unset :
699+ kwargs ["filter_handle" ] = filter_handle
700+
682701 local_page_size = get_attribute_from_path (kwargs , "page_size" , 10 )
683702 endpoint = self ._list_users_endpoint
684703 set_attribute_from_path (kwargs , "page_size" , local_page_size , endpoint .params_map )
0 commit comments