How to get the policy that a custom bot belonged to, and list the policy users through botframework api?

Manjula m 1 Reputation point
2022-11-16T09:03:14.047+00:00

I created a teams custom app using AzureBot in azure portal, and uploaded to my teams policy setup in admin center. Now I wanted the bot to be accessible only to users of policy. How can I get policy property of the custom bot, and which api can be used to list the users of the particular policy.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
751 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,154 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,714 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,886 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sayali-MSFT 2,266 Reputation points Microsoft Vendor
    2022-11-17T11:54:35.883+00:00

    You can use the Microsoft Teams admin center to edit a policy, including the global (Org-wide default) policy and custom policies that you create. After you edit or assign a policy, it can take a few hours for changes to take effect.

    To easily manage policies in your organization, Teams offers several ways to assign policies to users.

    For API related query, we are confirming with internal team and get back to you.

    Thanks,

    Sayali

    ------------------------------------------------------------------------------------------------------------------------

    If the response is helpful, please click "Mark as Best Response" and like it. You can share your feedback via Microsoft Teams Developer Feedback link.


  2. Sayali-MSFT 2,266 Reputation points Microsoft Vendor
    2022-11-18T07:44:32.343+00:00

    @Manjula m - Currently, There is no graph api for the policy.

    Could you please help by suggesting this feature on - Microsoft Teams · Community

    Thanks,
    Sayali


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

    0 comments No comments