Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

New 365 group member then create a SharePoint folder

(0) ShareShare
ReportReport
Posted on by 54

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. 

  • Pstork1 Profile Picture
    67,060 Most Valuable Professional on at
    Re: New 365 group member then create a SharePoint folder

    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.

  • PremierD Profile Picture
    54 on at
    Re: New 365 group member then create a SharePoint folder

    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. 

  • Pstork1 Profile Picture
    67,060 Most Valuable Professional on at
    Re: New 365 group member then create a SharePoint folder

    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.

    image.png

  • PremierD Profile Picture
    54 on at
    Re: New 365 group member then create a SharePoint folder

    Hi,

    Thanks for the response, here is the whole flow. 

     

    layout.png

  • Pstork1 Profile Picture
    67,060 Most Valuable Professional on at
    Re: New 365 group member then create a SharePoint folder

    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?

  • PremierD Profile Picture
    54 on at
    Re: New 365 group member then create a SharePoint folder

    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.

    azure.png

    azure 2.png

     

    Thanks

  • fchopo Profile Picture
    7,972 Super User 2025 Season 1 on at
    Re: New 365 group member then create a SharePoint folder

    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

  • Pstork1 Profile Picture
    67,060 Most Valuable Professional on at
    Re: New 365 group member then create a SharePoint folder

    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.

    image.png

  • PremierD Profile Picture
    54 on at
    Re: New 365 group member then create a SharePoint folder

    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.failedrun.png

  • Pstork1 Profile Picture
    67,060 Most Valuable Professional on at
    Re: New 365 group member then create a SharePoint folder

    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.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1