web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to add current use...
Power Apps
Answered

How to add current user to Sharepoint Group by button click or OnStart?

(0) ShareShare
ReportReport
Posted on by 40

Is there a way to add current user to a SharePoint Group by button click or through OnStart or something similar? I have an issue where "Everyone except external users" is not working for SharePoint group permissions. It works to allow users onto the site and to use the PowerApp, but they cannot submit even though I have  "Everyone except external users" with edit in the list. The app is supposed to be open to everyone who can access the site, which is thousands of people, so I need a way to gran anyone who can use the app, automatic permission to the SharePoint list it is based on.

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @mgm05e ,

     

    It's weird that the user cannot submit data even though they are in 'Everyone except external users' group and have edit permission... 

    Let's forget it and your requirement is achievable.

    The key is to use canvas to call flow and execute sharepoint rest api.

    There are many API tutorials on the web you can search to add users to a sp group.

    One of them - https://newbietechie.com/add-users-to-sharepoint-online-groups-using-rest-api/

     

    So the flow should be like this:

    vxiaochenmsft_0-1662518606463.png

     

    Finally, please modify this setting. 

    vxiaochenmsft_1-1662518705273.png

    vxiaochenmsft_2-1662518761243.png

    Choose 'use this connection' instead of 'Provided by run-only user'. The user who has this connection should have permission to add users to sp group.

     

    Best Regards,

    Wearsky

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard