Need to login 2 MS-Teams users and connect each other

Are we able to do login of 2 MS-Teams users and connect each other in single flow?How can I login 2 Teams users and connect each other in single workflow?


You can try like this:

To achieve this, you would typically need to use a combination of UiPath’s UI Automation capabilities along with other tools or methods to interact with Microsoft Teams. Here’s a general approach:

  1. Login to Microsoft Teams**: Use UI Automation activities in UiPath to automate the login process for the first user. This might involve opening the Microsoft Teams application, entering the username and password, and clicking on the login button.
  2. Switch User or Use Incognito Mode**: After logging in as the first user, you may need to switch to another user account or use an incognito or private browsing window to log in as the second user. This can be achieved using UI Automation activities to manipulate the browser or application interface.
  3. Initiate Interaction Between Users**: Once both users are logged in, you can use UI Automation to simulate actions like starting a chat or initiating a call between them. This involves locating and clicking on the appropriate buttons or elements within the Microsoft Teams interface.
  4. Handle Errors and Exceptions**: Ensure your workflow includes error handling mechanisms to deal with unexpected situations, such as login failures or changes to the application interface.

Thanks @naveen.s for your response. I have one doubt is it possible by login both teams users from web?

Yes its possible but you need to follow the steps as below:
1.Log in to multiple Microsoft Teams accounts simultaneously through the web interface using different browsers or browser profiles.
2.Each browser instance or profile can be logged in with a different Teams account, allowing you to access multiple accounts concurrently.


if you found this helpful, please mark as a solution, so others can make use of it.


Got a warning like 'Click ‘Get started’: Could not find the user-interface (UI) element for this action.

Possible solutions:
• Ensure application is opened and the UI element is visible on the screen at execution time
• Edit the Target of the UI activity and use Validation to debug the issue.
• If needed, re-indicate the element as its properties might have changed
• Use “Check state” activity to check the application state before executing the action
• Increase the “Delay before” value to allow time to the application to render entirely and become responsive’ this. How can i fix this?


Follow the below steps:

Open Browser (Microsoft Teams Login Page)
Type Into (Email Field - First Account)
Type Into (Password Field - First Account)
Click (Login Button)
// Additional activities to handle multi-factor authentication or other verification steps
Navigate To (Microsoft Teams Login Page)
Type Into (Email Field - Second Account)
Type Into (Password Field - Second Account)
Click (Login Button)
Close Tab


Please avoid creating same topic multiple times