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 / Add Users to a Sharepo...
Power Automate
Unanswered

Add Users to a Sharepoint Site

(0) ShareShare
ReportReport
Posted on by

Dear all,

 

I'm trying to add users a sharepoint site via power automate.

I can provide email, id or any necessary data to flow but i can't find a way to do this.

 

I read this article but didn't work for me, result always return blank.

https://normyoung.ca/2020/10/22/add-and-remove-users-to-a-sharepoint-site-using-microsoft-lists-and-power-automate/

 

Is there any other way to do this?

 

Thanks in advance,

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

    Hi @Anonymous,

     

    First of all, which action of that article returned blank results? We might be able to help you out by finding the root cause.

     

    Alternatively, you could look at the add member/user to group type of actions instead of the HTTP request approach. What type of group were you planning on using for this?

     

    Microsoft 365 Group

    addmembertogroup_office365.png

     

    Azure AD Security Group

    addusertogroup_azuread.png

  • Community Power Platform Member Profile Picture
    on at

    Hello @Expiscornovus,

     

    Thank you for the response.

     

    Third action in article returns blank, you can see below.

    hsynclk_0-1661165737453.png

     

    I want to add member to sharepoint site, which i create this with MS Teams. 

    All users are from inside the company, so i don't need to add a new one to our Azure AD, they are already there.

     

    Thanks in advance,

     

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Anonymous,

     

    Thanks for sharing that screenshot. 

     

    In the original article of Norm I see he was using the SiteName value and the Group column name of the SharePoint Demo list. In your screenshot it looks like it is missing the SiteName value, it only says ' Members'. 

     

    That is probably the reason why it returns empty. It cannot find a group called ' Members'.

     

    Can you share a screenshot of the config of your whole flow and also that specific action? Did you use the same expression as Norm as well in the URI?

    concat(variables('varSiteName'), ' ', triggerOutputs()?['body/Group/Value'])

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @Expiscornovus

    I used the same expression with Norm, you can see below;

     

     

     concat(variables('varSiteName'), ' ', triggerOutputs()?['body/Group/Value']) 

    Also, some of variables are in French in Sharepoint, could language create problem?

     hsynclk_2-1661170552519.png

    hsynclk_1-1661170386031.png

     

    Code is: concat(variables('varSiteName'), ' ', triggerOutputs()?['body/Group/Value'])

     

    hsynclk_0-1661170326991.png

     

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Anonymous,


    The name of the column in your SharePoint list could be the issue. Did you setup the choice column in the List with the same name, Group? 

     

    group_internalname.png

  • Community Power Platform Member Profile Picture
    on at

    Hi @Expiscornovus ,

     

    Yes, i did;

     

    hsynclk_0-1661172636898.png

     

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Anonymous,

     

    Apologies, I got confused. I need another coffee. The Group column is not the issue, since it was showing the Members label of the choice column. My bad 😅

     

    I think we need to focus on the varSiteName variable value (the SiteName field value). For some reason it is returning as empty? Did you check the outputs of your flow run. Does it show up in your trigger action outputs for example?

  • Community Power Platform Member Profile Picture
    on at

    Hi @Expiscornovus ,

     

    Thats the only thing all we need 🙂

     

    Here is an updated one, the name (PowerAppsDemo) and type (Members) are looks correct to me.

     

    hsynclk_0-1661175036846.png

     

     

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Anonymous,

     

    Just to double check. The SiteGroup does exist in the interface on the site itself?

     

    CheckNameinInterface.gif

  • Community Power Platform Member Profile Picture
    on at

    Hi @Expiscornovus ,

     

    Yes, 

     

    hsynclk_0-1661175424842.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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard