:doc:`Chatbot <../../chatbot>` / Client / list_microsoft_teams_user_identities

************************************
list_microsoft_teams_user_identities
************************************



.. py:method:: Chatbot.Client.list_microsoft_teams_user_identities(**kwargs)

  

  A list all Microsoft Teams user identities with a mapped role.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/ListMicrosoftTeamsUserIdentities>`_  


  **Request Syntax**
  ::

    response = client.list_microsoft_teams_user_identities(
        ChatConfigurationArn='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type ChatConfigurationArn: string
  :param ChatConfigurationArn: 

    The Amazon Resource Name (ARN) of the MicrosoftTeamsChannelConfiguration associated with the user identities to list.

    

  
  :type NextToken: string
  :param NextToken: 

    An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

    

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

    
    ::

      {
          'TeamsUserIdentities': [
              {
                  'IamRoleArn': 'string',
                  'ChatConfigurationArn': 'string',
                  'TeamId': 'string',
                  'UserId': 'string',
                  'AwsUserIdentity': 'string',
                  'TeamsChannelId': 'string',
                  'TeamsTenantId': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TeamsUserIdentities** *(list) --* 

        User level permissions associated to a channel configuration.

        
        

        - *(dict) --* 

          Identifes a user level permission for a channel configuration.

          
          

          - **IamRoleArn** *(string) --* 

            A user-defined role that AWS Chatbot assumes. This is not the service-linked role.

             

            For more information, see `IAM policies for AWS Chatbot <https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html>`__ in the *AWS Chatbot Administrator Guide*.

            
          

          - **ChatConfigurationArn** *(string) --* 

            The Amazon Resource Name (ARN) of the MicrosoftTeamsChannelConfiguration associated with the user identity to delete.

            
          

          - **TeamId** *(string) --* 

            The ID of the Microsoft Teams authorized with AWS Chatbot.

             

            To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more information, see `Step 1\: Configure a Microsoft Teams client <https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html#teams-client-setup>`__ in the *AWS Chatbot Administrator Guide*.

            
          

          - **UserId** *(string) --* 

            The Microsoft Teams user ID.

            
          

          - **AwsUserIdentity** *(string) --* 

            The AWS user identity ARN used to associate a Microsoft Teams user Identity with an IAM Role.

            
          

          - **TeamsChannelId** *(string) --* 

            The ID of the Microsoft Teams channel.

            
          

          - **TeamsTenantId** *(string) --* 

            The ID of the Microsoft Teams tenant.

            
      
    
      

      - **NextToken** *(string) --* 

        An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.

        
  
  **Exceptions**
  
  *   :py:class:`Chatbot.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Chatbot.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Chatbot.Client.exceptions.ListMicrosoftTeamsUserIdentitiesException`

  