cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bensonpolican
Regular Visitor

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

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

3 REPLIES 3
PowerPuffKK
Advocate I
Advocate I

Hi @bensonpolican ,

 

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

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

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.

Helpful resources

Announcements
Canadian Cloud 2022 768x460.png

Register for a free PVA chatbot creation workshop.

Learn how to respond rapidly to your customers and employees at scale, using intelligent conversational chatbots.

Top Kudoed Authors
Users online (3,501)