Get Users
AutomatR.MicrosoftTeams.Activities.GetUsers
The "Get Users" activity in AutomatR for Microsoft Teams retrieves a collection of users in Teams, providing detailed user information and collaboration insights. This activity returns a collection page (ICollectionPage<User>) containing user objects, allowing you to access and analyze user data within your automation workflows.
Properties
| Name | Description |
|---|---|
| Misc | |
| Display Name | The display name of the activity. A display name is automatically generated when you indicate a target. |
| Optional | |
| Delay | Specifies the amount of time (in seconds) to wait before executing the "Get Users" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
| Output | |
| Result | Outputs a collection page (ICollectionPage<User>) containing detailed information about the retrieved users in Teams. This collection includes properties such as user ID, display name, email address, and more. |
How to use:
- Drag and drop the "Get Users" activity onto the workflow.
- Optionally, configure the delay.
- Execute the workflow to retrieve a collection of users in Microsoft Teams.
Example: Consider an example where the "Get Users" activity is used to retrieve a collection of users in Microsoft Teams:
Get Users:
Delay: 2
Result: teamsUsers
In this example, the activity waits for 2 seconds before executing and retrieves a collection of users in Microsoft Teams. The resulting teamsUsers collection page contains detailed information about each user for further processing within the workflow.