Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User profile picture not rendered in adaptive card on Teams client app #8687

Closed
Ismael-Cruz opened this issue Sep 22, 2023 · 2 comments
Closed
Labels
Area-Renderers Bug MSTeams-Developer-Support [DoNotDelete] Label to notify questions which needs attention from MSTeams Developer Support team. Partner-MsftTeams Issues related to AC integration with Microsoft Teams partner

Comments

@Ismael-Cruz
Copy link

Target Platforms

Other

SDK Version

Adaptive Cards 1.3

Application Name

Microsoft Teams

Problem Description

When adding the user profile picture with url "/_layouts/15/userphoto.aspx" to an adaptive card, it renders in Teams via browser but not in the client app, which returns a 401 Unauthorised.

URL for the image: https://TENANT.sharepoint.com/_layouts/15/userphoto.aspx?size=S&[email protected]

Screenshots

Teams in browser:
Screenshot 2023-09-22 154948
Teams app:
Screenshot 2023-09-22 154959

Card JSON

{
      "type": "AdaptiveCard",
      "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
      "version": "1.3",
      "body": [
        {
          "type": "Container",
          "items": [
            {
              "type": "ColumnSet",
              "spacing": "extraLarge",
              "columns": [
                {
                  "type": "Column",
                  "width": "36px",
                  "items": [
                    {
                      "type": "Image",
                      "url": "https://TENANT.sharepoint.com/_layouts/15/userphoto.aspx?size=S&[email protected]",
                      "width": "36px",
                      "style": "person"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }

Sample Code Language

No response

Sample Code

No response

@jwoo-msft jwoo-msft added Partner-MsftTeams Issues related to AC integration with Microsoft Teams partner MSTeams-Developer-Support [DoNotDelete] Label to notify questions which needs attention from MSTeams Developer Support team. labels Sep 22, 2023
@Wajeed-msft
Copy link

This issue has been copied over to Microsoft Teams repo here: MicrosoftDocs/msteams-docs#9529

@jwoo-msft
Copy link
Member

Closing this issue since it's hosting app issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Renderers Bug MSTeams-Developer-Support [DoNotDelete] Label to notify questions which needs attention from MSTeams Developer Support team. Partner-MsftTeams Issues related to AC integration with Microsoft Teams partner
Projects
Status: Closed
Development

No branches or pull requests

3 participants