Skip to main content

Notifications

Publish & Channel Management
Answered

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

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
    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.

  • 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
    PowerPuffKK 84 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

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,997

#3
Expiscornovus Profile Picture

Expiscornovus 1,708

Leaderboard

Featured topics