Share via

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.
Microsoft Teams | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Sayali-MSFT 5,191 Reputation points Microsoft External Staff Moderator
    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

  2. Sayali-MSFT 5,191 Reputation points Microsoft External Staff Moderator
    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.


Your answer

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