Hi PA community,
I am looking for some advise that I do not even know if it is possible. Not even sure where to start with the flow as I have had a look and could not find the answer, so here goes.
Lets say I have a 365 group called 'staff' and then a SharePoint document library. Is there anyway that when new user 'a' is added to the group 'staff' it can create a folder for them in the SharePoint site?
Does anyone know if it is possible, the group will always stay the same. Thanks in advance.
Now we are back to my original reply. Azure AD doesn't have a trigger that fires when a new user is added to a group. So you would have to use a recurrence trigger and check the group each time for new users.
That worked brilliantly , thanks! Now I have another issue. Instead of being a 365 group I need it to work on a security group. Is that possible? Sorry for all the questions and I really appreciate all the help.
The problem with the condition is that @Removed doesn't exist if a user is added to the group. So your condition fails because @Removed does not equal false. It doesn't exist. Try this condition instead. It tests to make sure that
@Removed is null and that UserID is not.
Hi,
Thanks for the response, here is the whole flow.
According to the error the problem is that the flow never executes the Get User. What does the condition that leads to the Yes branch look like?
Hi Both,
I tried in my limited knowledge to do as advised and I still get the same result. If someone could tell me what I may be doing wrong that would be really appreciated.
Thanks
Hello
@Pstork1 is right, as I didn't realize that to get the user profile you need its UPN, and not its ID.
Try it and let us know.
Regards,
Ferran
The problem is that the trigger only returns the GUID (UserID) for the user and you can't use that in Get User Profile. So you'll need to add a call to Azure AD to Get the user details using the UserID. That may be all you need since that will return the Display Name for the user. Otherwise you can then make a call to get the Profile based on the UPN returned from Azure AD.
Hi,
Thanks for reply, it only allows User ID, so a bit stuck. I tried adding fields below, but no change. I have removed the fields now.
I looked at the screenshot for the example and @fchopo showed it using the UserId. That field is actually a GUID. You should be using the User Principle Name or Email value instead.
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1