Skip to main content

Notifications

Community site session details
Power Automate - Building Flows
Answered

Automatically adding a new user in a Viva Engage community

Like (0) ShareShare
ReportReport
Posted on 5 Jan 2024 08:38:30 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.

  • lilianmonti Profile Picture
    5 on 19 Jan 2024 at 14:24:49
    Re: Automatically adding a new user in a Viva Engage community

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

  • Verified answer
    Expiscornovus Profile Picture
    31,652 Most Valuable Professional on 05 Jan 2024 at 11:49:01
    Re: Automatically adding a new user in a Viva Engage community

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started
Loading started