Skip to main content

Testing end-to-end in Microsoft Teams

With the flow deployed and the trigger published, test it where users actually live. Open your virtual agent in Teams - make sure it is the bot connected to this environment - and type one of the sample queries. The trigger matches and the flow's first card appears.

Microsoft Teams chat: user types "i need to add a user to a security group", the trigger fires, and the Search for a User card opens with a name/email input and Cancel / Search buttons

Step through the live calls

Each step runs the live Graph APIs you tested earlier: the user search fills the Matching users dropdown, the group search fills the group list, and the confirmation card shows exactly what will change before anything happens.

Search for a User card with a dropdown showing live user search results from Microsoft Graph (test, Test BotSetup User, test demouser, Test FlowBot, …) and a Select button

Confirmation card with User, Email, and Security Group fields filled in, and Cancel / Confirm buttons

Click Confirm - the flow calls the add-member endpoint and reports the result.

User Added Successfully card showing the user, email, and target group with Done and Add Another buttons

Verify in Entra

For a write operation like this, confirm the change in the Microsoft Entra admin center (Groups → your group → Members) or re-run the flow's membership check. Re-adding an existing member is harmless - Graph treats it as already satisfied.

What you just verified

In one round trip from a sentence to a write, you have proven:

  • The trigger phrase maps to the right flow.
  • The bot is connected to the right environment.
  • The OAuth client-credentials flow is acquiring a real Microsoft Graph token.
  • The three Graph endpoints (user search, group search, add member) all work with your tenant.
  • The card sequence and conditions route the user correctly through search, selection, confirmation, and success.

What's next