:doc:`EMR <../../emr>` / Client / list_studio_session_mappings

****************************
list_studio_session_mappings
****************************



.. py:method:: EMR.Client.list_studio_session_mappings(**kwargs)

  

  Returns a list of all user or group session mappings for the Amazon EMR Studio specified by ``StudioId``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListStudioSessionMappings>`_  


  **Request Syntax**
  ::

    response = client.list_studio_session_mappings(
        StudioId='string',
        IdentityType='USER'|'GROUP',
        Marker='string'
    )
    
  :type StudioId: string
  :param StudioId: 

    The ID of the Amazon EMR Studio.

    

  
  :type IdentityType: string
  :param IdentityType: 

    Specifies whether to return session mappings for users or groups. If not specified, the results include session mapping details for both users and groups.

    

  
  :type Marker: string
  :param Marker: 

    The pagination token that indicates the set of results to retrieve.

    

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

    
    ::

      {
          'SessionMappings': [
              {
                  'StudioId': 'string',
                  'IdentityId': 'string',
                  'IdentityName': 'string',
                  'IdentityType': 'USER'|'GROUP',
                  'SessionPolicyArn': 'string',
                  'CreationTime': datetime(2015, 1, 1)
              },
          ],
          'Marker': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SessionMappings** *(list) --* 

        A list of session mapping summary objects. Each object includes session mapping details such as creation time, identity type (user or group), and Amazon EMR Studio ID.

        
        

        - *(dict) --* 

          Details for an Amazon EMR Studio session mapping. The details do not include the time the session mapping was last modified.

          
          

          - **StudioId** *(string) --* 

            The ID of the Amazon EMR Studio.

            
          

          - **IdentityId** *(string) --* 

            The globally unique identifier (GUID) of the user or group from the IAM Identity Center Identity Store.

            
          

          - **IdentityName** *(string) --* 

            The name of the user or group. For more information, see `UserName <https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName>`__ and `DisplayName <https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName>`__ in the *IAM Identity Center Identity Store API Reference*.

            
          

          - **IdentityType** *(string) --* 

            Specifies whether the identity mapped to the Amazon EMR Studio is a user or a group.

            
          

          - **SessionPolicyArn** *(string) --* 

            The Amazon Resource Name (ARN) of the session policy associated with the user or group.

            
          

          - **CreationTime** *(datetime) --* 

            The time the session mapping was created.

            
      
    
      

      - **Marker** *(string) --* 

        The pagination token that indicates the next set of results to retrieve.

        
  
  **Exceptions**
  
  *   :py:class:`EMR.Client.exceptions.InternalServerError`

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

  