Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Survey App - One-Time access per user

(0) ShareShare
ReportReport
Posted on by 32
Hello,
 
I've created a Survey app and it works so far quite good. As a next improvement I would like to limit the access per user so that only each user can fill out the survey one time.
 
Is there any OOTB solution for something like that? Would be great to get some input.
 
Thank you very much!
Categories:
  • Verified answer
    Paul1896 Profile Picture
    32 on at
    Survey App - One-Time access per user
    Thank you very much for all your answers they helped me a lot to find the solution for my problem.
     
    Finally I've set the StartScreen Property with following formula:
     
    If(!IsBlank(LookUp(Responses,'Created By'.'Full Name'=User().FullName)),Error_Screen,Home_Screen)
  • Paul1896 Profile Picture
    32 on at
    Survey App - One-Time access per user
    Oh, yeah. That was a kind of stupid question :D
     
    But then let's modify my last question a little bit:
     
    Is there way to get the mail adress when the user starts the survey app and check it against the mentioned table? And based on that result the survey will stat or not.
  • Kenobi Profile Picture
    71 on at
    Survey App - One-Time access per user
    Given & Family names are not necessarily unique as there can be more than one John Smith, i suggest you avoid referencing that.
  • Paul1896 Profile Picture
    32 on at
    Survey App - One-Time access per user
    Thanks for your feedback! Okay my dats source and destination is Dataverse that I missed to mention in my initial post.
     
    So I could iterate over the responses table and check if a colleague already exists in the "Responses" based on the internal fields "Created by" or/and "Modified by".
     
    Is there way to get the Given & Family name when the user starts the survey app and check it against the mentioned table? And based on that result the survey will stat or not.
  • Suggested answer
    Kenobi Profile Picture
    71 on at
    Survey App - One-Time access per user
    If the survey it not anonymous, you can save the User().Email upon submission to a SP list, then on App Onstart you can check if the user has completed the survey or not.

    In the form OnSuccess you can put something like this:
     
    Patch(ListOfUsersCompletedTheSurvey, Defaults(ListOfUsersCompletedTheSurvey), {Email : User().Email})
     
    Then add this to the OnStart property:
     
    Set(vCompleted, If(IsBlank(LookUp(ListOfUsersCompletedTheSurvey, Title = User().Email)),false, true));
     
    If(vCompleted, /Show page telling them they already completed/, /Show Survey questions/)
     
    Note that all users who will be populating the survey should have read access to the SP list in order
    for this to work, which might introduce some issues if the data is sensitive.


    Alternatively, you can add and remove members from O365 groups you created to check access and that will not require
    them to have direct access:
    Office365Groups.AddMemberToGroup
    Office365Groups.RemoveMemberFromGroup
  • Nirav Raval (Akira28) Profile Picture
    150 Super User 2025 Season 1 on at
    Survey App - One-Time access per user
    Hi  Paul1896 ,

    As far as I know there is no direct OOTB feature to limit the survey responses per user in PowerApps but however may be you can implement using custom logic with user email checks. 
    🤞


    If this post solved your issue, clicking 'Does this answer your question' will help others discover the solution and close the topic. If you found it helpful, a Like would be awesome!


    Regards,
    Nirav J Raval (Akira28)

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard