:doc:`DataZone <../../datazone>` / Client / list_entity_owners

******************
list_entity_owners
******************



.. py:method:: DataZone.Client.list_entity_owners(**kwargs)

  

  Lists the entity (domain units) owners.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/ListEntityOwners>`_  


  **Request Syntax**
  ::

    response = client.list_entity_owners(
        domainIdentifier='string',
        entityType='DOMAIN_UNIT',
        entityIdentifier='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the domain where you want to list entity owners.

    

  
  :type entityType: string
  :param entityType: **[REQUIRED]** 

    The type of the entity that you want to list.

    

  
  :type entityIdentifier: string
  :param entityIdentifier: **[REQUIRED]** 

    The ID of the entity that you want to list.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of entities to return in a single call to ``ListEntityOwners``. When the number of entities to be listed is greater than the value of ``MaxResults``, the response contains a ``NextToken`` value that you can use in a subsequent call to ``ListEntityOwners`` to list the next set of entities.

    

  
  :type nextToken: string
  :param nextToken: 

    When the number of entities is greater than the default value for the ``MaxResults`` parameter, or if you explicitly specify a value for ``MaxResults`` that is less than the number of entities, the response includes a pagination token named ``NextToken``. You can specify this ``NextToken`` value in a subsequent call to ``ListEntityOwners`` to list the next set of entities.

    

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

    
    ::

      {
          'owners': [
              {
                  'user': {
                      'userId': 'string'
                  },
                  'group': {
                      'groupId': 'string'
                  }
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **owners** *(list) --* 

        The owners of the entity.

        
        

        - *(dict) --* 

          The ID of the domain unit owners group.

          .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``user``, ``group``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                    'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


        
          

          - **user** *(dict) --* 

            Specifies that the domain unit owner is a user.

            
            

            - **userId** *(string) --* 

              The ID of the owner user.

              
        
          

          - **group** *(dict) --* 

            Specifies that the domain unit owner is a group.

            
            

            - **groupId** *(string) --* 

              The ID of the domain unit owners group.

              
        
      
    
      

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

        When the number of entities is greater than the default value for the ``MaxResults`` parameter, or if you explicitly specify a value for ``MaxResults`` that is less than the number of entities, the response includes a pagination token named ``NextToken``. You can specify this ``NextToken`` value in a subsequent call to ``ListEntityOwners`` to list the next set of entities.

        
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

  
  *   :py:class:`DataZone.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`DataZone.Client.exceptions.ValidationException`

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  