list_guest_users
¶
list_guest_users(
network_id: NetworkId,
*,
config_overrides: Optional[WickrClientConfig] = None,
max_results: Optional[int] = None,
sort_direction: Optional[SortDirection] = None,
sort_fields: Optional[GenericString] = None,
username: Optional[GenericString] = None,
billing_period: Optional[GenericString] = None,
next_token: Optional[GenericString] = None,
) -> ListGuestUsersResponse
Retrieves a paginated list of guest users who have communicated with your Wickr network. Guest users are external users from federated networks who can communicate with network members.
Parameters:
-
network_id(NetworkId) –The ID of the Wickr network from which to list guest users.
-
max_results(Optional[int], default:None) –The maximum number of guest users to return in a single page. Valid range is 1-100. Default is 10.
-
sort_direction(Optional[SortDirection], default:None) –The direction to sort results. Valid values are 'ASC' (ascending) or 'DESC' (descending). Default is 'DESC'.
-
sort_fields(Optional[GenericString], default:None) –The field to sort guest users by. Accepted values include 'username' and 'billingPeriod'.
-
username(Optional[GenericString], default:None) –Filter results to only include guest users with usernames matching this value.
-
billing_period(Optional[GenericString], default:None) –Filter results to only include guest users from this billing period (e.g., '2024-01').
-
next_token(Optional[GenericString], default:None) –The token for retrieving the next page of results. This is returned from a previous request when there are more results available.
Raises:
-
BadRequestError–The request was invalid or malformed. This error occurs when the request parameters do not meet the API requirements, such as invalid field values, missing required parameters, or improperly formatted data.
-
ForbiddenError–Access to the requested resource is forbidden. This error occurs when the authenticated user does not have the necessary permissions to perform the requested operation, even though they are authenticated.
-
InternalServerError–An unexpected error occurred on the server while processing the request. This indicates a problem with the Wickr service itself rather than with the request. If this error persists, contact Amazon Web Services Support.
-
RateLimitError–The request was throttled because too many requests were sent in a short period of time. Wait a moment and retry the request. Consider implementing exponential backoff in your application.
-
ResourceNotFoundError–The requested resource could not be found. This error occurs when you try to access or modify a network, user, bot, security group, or other resource that doesn't exist or has been deleted.
-
UnauthorizedError–The request was not authenticated or the authentication credentials were invalid. This error occurs when the request lacks valid authentication credentials or the credentials have expired.
-
ValidationError–One or more fields in the request failed validation. This error provides detailed information about which fields were invalid and why, allowing you to correct the request and retry.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Get paginated list of guest users
>>> client.list_guest_users(network_id='12345678', max_results=20, sort_direction='DESC', sort_fields='billingPeriod')
Filter by billing period
>>> client.list_guest_users(network_id='12345678', billing_period='2024-01', max_results=10)
Empty guest list
Source code in docs_src/capo_wickr/_services/wickr.py
2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 | |