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?
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.
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.
However, the one published in MS Teams does not respond to the said trigger.
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)
Application - Expose an API
Application - API Permissions
PVA Authentication (Manage>Security>Authentication)
Application Overview
Thank you for the assistance!
Regards,
Benson
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
Ekta Gupta
9
garzajp93
6
rzaneti
2
Super User 2025 Season 1