File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,8 @@ def search_all(
156156 names : Optional [List [str ]] = None ,
157157 self_provisioning_domains : Optional [List [str ]] = None ,
158158 custom_attributes : Optional [dict ] = None ,
159+ enforce_sso : Optional [bool ] = None ,
160+ disabled : Optional [bool ] = None ,
159161 ) -> dict :
160162 """
161163 Search all tenants.
@@ -165,6 +167,8 @@ def search_all(
165167 names (List[str]): Optional list of names to filter by
166168 self_provisioning_domains (List[str]): Optional list of self provisioning domains to filter by
167169 custom_attributes (dict): Optional search for a attribute with a given value
170+ enforce_sso (bool): Optional search to filter by enforce_sso
171+ disabled (bool): Optional search to filter by disabled
168172
169173 Return value (dict):
170174 Return dict in the format
@@ -181,6 +185,8 @@ def search_all(
181185 "tenantNames" : names ,
182186 "tenantSelfProvisioningDomains" : self_provisioning_domains ,
183187 "customAttributes" : custom_attributes ,
188+ "enforceSSO" : enforce_sso ,
189+ "disabled" : disabled ,
184190 },
185191 pswd = self ._auth .management_key ,
186192 )
Original file line number Diff line number Diff line change @@ -318,6 +318,7 @@ def test_search_all(self):
318318 names = ["name1" ],
319319 custom_attributes = {"k1" : "v1" },
320320 self_provisioning_domains = ["spd1" ],
321+ enforce_sso = True
321322 )
322323 tenants = resp ["tenants" ]
323324 self .assertEqual (len (tenants ), 2 )
@@ -334,6 +335,8 @@ def test_search_all(self):
334335 "tenantNames" : ["name1" ],
335336 "tenantSelfProvisioningDomains" : ["spd1" ],
336337 "customAttributes" : {"k1" : "v1" },
338+ "enforceSSO" : True ,
339+ "disabled" : None
337340 },
338341 allow_redirects = False ,
339342 verify = True ,
You can’t perform that action at this time.
0 commit comments