how should i allow only few people to access the bot i published in teams to my organisation

Tejkiran D M 25 Reputation points
2025-01-22T07:21:55.82+00:00

how should i allow only few people to access the bot i published in teams to my organisation

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,896 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.
3,565 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,289 questions
0 comments No comments
{count} votes

Accepted answer
  1. Abiola Akinbade 23,135 Reputation points
    2025-01-22T07:51:56.4733333+00:00

    Hello Tejkiran D M,

    Thanks for your question.

    You can configure access to the bot based on user permissions in Entra.

    • Go to Microsoft Entra admin center.
    • Under the Groups section, create a new security group and add the users who should have access to the bot.
    • In Teams go to the bot and set the bot’s permissions to allow access only to the previously created security group. This ensures that only members of this group can interact with the bot.
    • You can also use a conditional access policy if you have the prerequisite license.

    From the teams perspective you can use app permission policies as well
    See: https://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/app-permissions/teams-app-permissions

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Prasad-MSFT 8,516 Reputation points Microsoft Vendor
    2025-01-22T12:09:59.47+00:00

    You can create and apply custom app permission policies in the Teams admin centre. These policies allow you to control which users or groups can access specific apps, including your bot. By applying these policies, you can restrict access to your bot to only the desired users or groups.

    Ref: https://learn.microsoft.com/en-us/microsoftteams/teams-app-permission-policies

    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.

    0 comments No comments

  2. Robin Sheng-MSFT 6,115 Reputation points Microsoft Vendor
    2025-01-23T02:03:03.28+00:00

    Hi @Tejkiran D M

    According to your case description, you want to limit the access rights of robots published to the organization in Microsoft Teams.

    • Create a dedicated team or channel: Add members who need to access the robot to the team or channel.
    • Configure robot permissions: In the Teams admin center, navigate to Teams Apps > Manage Apps. Select your robot app to open the app details page. In the Permissions tab, view and configure the permissions requested by the app.
    • Limit the use of robots in specific teams or channels: In the team or channel, click More options > Manage team. In the Apps tab, add or remove robot apps.

    These steps ensure that only members of a specific team or channel can access and use the robot. If you need more detailed guidance, you can refer to the official Microsoft Teams documentation.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



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.