Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Publish & Channel Management
Answered

SSO in Teams on an already published chat bot that doesn't have one

(0) ShareShare
ReportReport
Posted on by

I have question on setting up SSO in Teams (https://docs.microsoft.com/en-us/power-virtual-agents/configure-sso-teams).

 

I already finished setting up all of the steps in the document but whenever I try getting the bot.UserDisplayName, nothing happens. 


I'm a bit confused on the last important note.

"If your users have used the manifest to install the bot, they will need to get a new manifest after this configuration is complete and install the bot again for the Teams SSO to work. The Teams manifest does not refresh automatically. Alternatively, if you submit for Admin approval, the manifest is updated automatically."

 

How do you install the bot again after I got the new manifest?

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: SSO in Teams on an already published chat bot that doesn't have one

    Please ignore this question. The configuration I setup was already good but it didn't immediately reflect on the bot in my MS Teams.

     

    Uninstalling the bot from MS Teams then reinstalling it fixed the SSO issue.

     

    Thank you for the response.

  • Community Power Platform Member Profile Picture
    on at
    Re: SSO in Teams on an already published chat bot that doesn't have one

    Hi Kristine,

     

    Sorry, it took me a while to contact our admin and I am now able to update the manifest. However, My setup for the SSO of MS Teams still doesn't work.

     

    This is how it should work as tested in PVA.

    a.png

     

     

     

     

     

     

     

     

    However, the one published in MS Teams does not respond to the said trigger.

    B.png

     

     

     

     

     

     

     

     

    I tried following this link (https://docs.microsoft.com/en-us/power-virtual-agents/configure-sso-teams).

     

    Attached are my current setup.

     

    PVA Teams Channel (Manage>Channels>MS Teams>Edit Details> More)

    PVA Teams SSO.png

     

     

    Application - Expose an API

    Application - Expose an API.png

     

     

     

     

     

     

    Application - API Permissions

    Application - API Permissions.png

     

     

     

     

     

    PVA Authentication (Manage>Security>Authentication)

    PVA Authentication.png

     

     

     

     

     

     

     

     

    Application Overview

    Application - Overview.png

     

    Thank you for the assistance!

    Regards,

    Benson

  • PowerPuffKK Profile Picture
    316 on at
    Re: SSO in Teams on an already published chat bot that doesn't have one

    Hi @Anonymous ,

     

    The quote in your message refers to the way your bot was published within Teams. There are three ways to  do so at present:

     

    - share with your Team colleagues (no approval required by admin),

    - share with your org - this is when you submit the bot for admin approval and then once approved, it is published in the app store. Doing it this way automatically updates the bot manifest every time you publish an update without the need for the admin to perform any actions,

    - upload the chatbot as a custom app to your Teams app store using the bot manifest file. This can be done either individually by users (if your Teams policy allows users to upload custom apps) or by your Teams admin who'll be able to upload the bot using the manifest file. What this however means is that every time an update is performed to your bot, you will need to download the updated manifest file and provide it to your end users/admin every single time.

    "If your users have used the manifest to install the bot, they will need to get a new manifest after this configuration is complete and install the bot again for the Teams SSO to work. The Teams manifest does not refresh automatically. Alternatively, if you submit for Admin approval, the manifest is updated automatically."

     

    So before we can help you with the issue, please could you advise how your bot was published? If you're using PVA for Teams, by default it will automatically be using SSO for Teams and you should be able to get bot.UserDisplayName and bot.UserID by default. Are you getting any errors?

     

    PLease include any screenshots as that makes troubleshooting much easier 😊

     

    Kristine

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - Publish & Channel Management

#1
Ekta Gupta Profile Picture

Ekta Gupta 9

#2
garzajp93 Profile Picture

garzajp93 6

#3
rzaneti Profile Picture

rzaneti 2 Super User 2025 Season 1

Overall leaderboard

Featured topics