web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Automatically adding a...
Power Automate
Unanswered

Automatically adding a new user in a Viva Engage community

(0) ShareShare
ReportReport
Posted on by 5

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.

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    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']

     

     

    adduserstom365group.png

  • lilianmonti Profile Picture
    5 on at

    Thank you for your answer, we will try it out!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard