Hello all,
We have a Teams with a Viva Engage community and we struggle with manually adding new Teams members to Viva Engage each time. Is there a way to buy a flow via Power Automate to identify new users in Teams and automatically add them in our Viva Engage Community?
I tried to search in the flow templates, but most of them are related to create a post in Viva Engage. I couldn't find anything about managing the community users.
Thank you in advance.
Thank you for your answer, we will try it out!
Hi @lilianmonti,
You could query the users and see if they have been created recently (via the CreatedDateTime property). After that you can add the matching users to the related M365 group as a member (assuming your Engage community has one).
Btw, on a side note. If you have Entra ID P1 licences you can also use the Dynamics Groups membership feature for this requirement:
https://learn.microsoft.com/en-us/entra/identity/users/groups-dynamic-membership
Below is an example for a recurrent (daily) cloud flow
1. A HTTP action with the URI. This action also uses an app registration (with client id and secret) in Entra for the OAuth configuration.
https://graph.microsoft.com/v1.0/users?$select=id,userprincipalName,createdDateTime&$filter=(createdDateTime ge @{addDays(utcNow(), -1, 'yyyy-MM-ddT00:00:00Z')} AND createdDateTime le @{utcNow('yyyy-MM-ddT00:00:00Z')})
2. The apply to each action uses the value property of the HTTP response
body('HTTP')['value']
3. The Add Users to Group action uses the id of the current item of the loop. The Group Id should be the id of your Viva Engage Community group.
item()['id']
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional