How to Get Teams users availbility status in bot Service.

Kavita Hooda 1 Reputation point
2021-07-15T10:21:44.367+00:00

I am developing a chat bot via bot framework, and its going to suport only Teams channel only.
as a requirement I need to transfer the chat to human agent which is availble at the moment.
We have created a Team/group and added all agent there,
I have given the graph api permission (Application) via app registration and added scope in oauth connection setting.

i am able to get the Team details and there memeber information , but not getting Presense status. How to get that , i also added presense.readwrite.all in permission.

It looks like i need to enable Delagte permission for this , so need to enable single sign on in Bot service .
Please help me out here. first how to get the availbility status of users.
and how to configure bot for SSO , so that it never ask for signin ,

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
943 questions
Microsoft Teams | Development
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 9,061 Reputation points Microsoft External Staff Moderator
    2021-07-16T12:08:24.667+00:00

    You can get to know about User Availability using Graph API.
    You can follow this sample as well to send proactive notification about user presence.

    Configuring Bot for Single Sign-on:

    Add authentication to a bot
    Single sign-on support for bots

    Thanks,

    Prasad Das


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    2 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.