Chime / Client / describe_channel_membership_for_app_instance_user



Returns the details of a channel based on the membership of the specified AppInstanceUser.


The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.


This API is is no longer supported and will not be updated. We recommend using the latest version, DescribeChannelMembershipForAppInstanceUser, in the Amazon Chime SDK.

Using the latest version requires migrating to a dedicated namespace. For more information, refer to Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guide.


This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.

See also: AWS API Documentation

Request Syntax

response = client.describe_channel_membership_for_app_instance_user(
  • ChannelArn (string) –


    The ARN of the channel to which the user belongs.

  • AppInstanceUserArn (string) –


    The ARN of the user in a channel.

  • ChimeBearer (string) – The AppInstanceUserArn of the user that makes the API call.

Return type:



Response Syntax

    'ChannelMembership': {
        'ChannelSummary': {
            'Name': 'string',
            'ChannelArn': 'string',
            'Mode': 'UNRESTRICTED'|'RESTRICTED',
            'Privacy': 'PUBLIC'|'PRIVATE',
            'Metadata': 'string',
            'LastMessageTimestamp': datetime(2015, 1, 1)
        'AppInstanceUserMembershipSummary': {
            'Type': 'DEFAULT'|'HIDDEN',
            'ReadMarkerTimestamp': datetime(2015, 1, 1)

Response Structure

  • (dict) –

    • ChannelMembership (dict) –

      The channel to which a user belongs.

      • ChannelSummary (dict) –

        Summary of the details of a Channel.

        • Name (string) –

          The name of the channel.

        • ChannelArn (string) –

          The ARN of the channel.

        • Mode (string) –

          The mode of the channel.

        • Privacy (string) –

          The privacy setting of the channel.

        • Metadata (string) –

          The metadata of the channel.

        • LastMessageTimestamp (datetime) –

          The time at which the last message in a channel was sent.

      • AppInstanceUserMembershipSummary (dict) –

        Summary of the membership details of an AppInstanceUser.

        • Type (string) –

          The type of ChannelMembership.

        • ReadMarkerTimestamp (datetime) –

          The time at which a message was last read.


  • Chime.Client.exceptions.BadRequestException

  • Chime.Client.exceptions.ForbiddenException

  • Chime.Client.exceptions.UnauthorizedClientException

  • Chime.Client.exceptions.ThrottledClientException

  • Chime.Client.exceptions.ServiceUnavailableException

  • Chime.Client.exceptions.ServiceFailureException