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 / Restrict Access on Sun...
Power Apps
Answered

Restrict Access on Sundays

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

First, I know this is correct but my company will not take on any additional charges right now, even $10/ month for an Azure SQL DB, and this is the only way I know how to update my list.

 

I have a SharePoint list that stores all items my company distributes and I update every Sunday.  Most Sales people aren't using the app on Sundays anyhow but I want to restrict access on Sundays so i can update with no issues.  I have a flow that deletes the list and then repopulates the list with current information.  Sometimes pricing changes, or we have new items added, old items fall off that we no longer sell.  

 

Can I restrict access, or at the very least disable the buttons on Sundays.  I was thinking something like:

 

If(DayOfWeek(Today()) = 1 && User().email <> myHardCodedEmail, disable, edit)

 

on the buttons on the main screen, but i wanted to see if there is a way in the admin portal or anything.

 

My issue is if we sell or promise something that we are no longer ordering because the ranking of an item was discontinued and the salesperson didn't have that updated info.

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    Hi @Anonymous ,

    Firstly your code will do the job - I assume the hard-coded email is yours. There is no other way that I know of to stop a user logging into the app except go back a step at App OnStart

    If(
     DayOfWeek(Today()) = 1 && 
     User().email <> myHardCodedEmail,
     Exit(),
     Navigate(YourScreenName)
    )

    You can also use Exit(true) and sign them out of Power Apps.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    All these years an I never even thought of clicking on the App label above the screen tree.  Thanks

  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    @Anonymous ,

    Now you have taken the journey, that is pretty much the best place to load and collect everything you need.

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 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard