web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / SSO in Teams on an alr...
Copilot Studio
Unanswered

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?

I have the same question (0)
  • PowerPuffKK Profile Picture
    316 on at

    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

  • Community Power Platform Member Profile Picture
    on at

    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

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard