:doc:`WickrAdminAPI <../../wickr>` / Client / list_blocked_guest_users

************************
list_blocked_guest_users
************************



.. py:method:: WickrAdminAPI.Client.list_blocked_guest_users(**kwargs)

  

  Retrieves a paginated list of guest users who have been blocked from a Wickr network. You can filter and sort the results.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/wickr-2024-02-01/ListBlockedGuestUsers>`_  


  **Request Syntax**
  ::

    response = client.list_blocked_guest_users(
        networkId='string',
        maxResults=123,
        sortDirection='ASC'|'DESC',
        sortFields='string',
        username='string',
        admin='string',
        nextToken='string'
    )
    
  :type networkId: string
  :param networkId: **[REQUIRED]** 

    The ID of the Wickr network from which to list blocked guest users.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of blocked guest users to return in a single page. Valid range is 1-100. Default is 10.

    

  
  :type sortDirection: string
  :param sortDirection: 

    The direction to sort results. Valid values are 'ASC' (ascending) or 'DESC' (descending). Default is 'DESC'.

    

  
  :type sortFields: string
  :param sortFields: 

    The field to sort blocked guest users by. Accepted values include 'username', 'admin', and 'modified'.

    

  
  :type username: string
  :param username: 

    Filter results to only include blocked guest users with usernames matching this value.

    

  
  :type admin: string
  :param admin: 

    Filter results to only include blocked guest users that were blocked by this administrator.

    

  
  :type nextToken: string
  :param nextToken: 

    The token for retrieving the next page of results. This is returned from a previous request when there are more results available.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'nextToken': 'string',
          'blocklist': [
              {
                  'username': 'string',
                  'admin': 'string',
                  'modified': 'string',
                  'usernameHash': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        The token to use for retrieving the next page of results. If this is not present, there are no more results.

        
      

      - **blocklist** *(list) --* 

        A list of blocked guest user objects within the current page.

        
        

        - *(dict) --* 

          Represents a guest user who has been blocked from accessing a Wickr network.

          
          

          - **username** *(string) --* 

            The username of the blocked guest user.

            
          

          - **admin** *(string) --* 

            The username of the administrator who blocked this guest user.

            
          

          - **modified** *(string) --* 

            The timestamp when the guest user was blocked or last modified.

            
          

          - **usernameHash** *(string) --* 

            The unique username hash identifier for the blocked guest user.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`WickrAdminAPI.Client.exceptions.ValidationError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.BadRequestError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.ResourceNotFoundError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.ForbiddenError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.UnauthorizedError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.InternalServerError`

  
  *   :py:class:`WickrAdminAPI.Client.exceptions.RateLimitError`

  