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