:doc:`IoT <../../iot>` / Client / list_things_in_thing_group

**************************
list_things_in_thing_group
**************************



.. py:method:: IoT.Client.list_things_in_thing_group(**kwargs)

  

  Lists the things in the specified group.

   

  Requires permission to access the `ListThingsInThingGroup <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/ListThingsInThingGroup>`_  


  **Request Syntax**
  ::

    response = client.list_things_in_thing_group(
        thingGroupName='string',
        recursive=True|False,
        nextToken='string',
        maxResults=123
    )
    
  :type thingGroupName: string
  :param thingGroupName: **[REQUIRED]** 

    The thing group name.

    

  
  :type recursive: boolean
  :param recursive: 

    When true, list things in this thing group and in all child groups as well.

    

  
  :type nextToken: string
  :param nextToken: 

    To retrieve the next set of results, the ``nextToken`` value from a previous response; otherwise **null** to receive the first set of results.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return at one time.

    

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

    
    ::

      {
          'things': [
              'string',
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **things** *(list) --* 

        The things in the specified thing group.

        
        

        - *(string) --* 
    
      

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

        The token to use to get the next set of results, or **null** if there are no additional results.

        
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

  
  *   :py:class:`IoT.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`IoT.Client.exceptions.ThrottlingException`

  