I've been testing this on a SharePoint list which has all permissions deleted. I then use DataSourceInfo() to check for EditPermission.
If(DataSourceInfo('TESTLISTHERE', DataSourceInfo.EditPermission),"You have access to the list","You do not have access to the list")
I log in as a regular user and open the PowerApps form. The function always evaluates to true.
There are previous posts on this issue but I think more investigation needs to be done by the PowerApps team.
By "has all permissions deleted"? Did you mean that this user doesn't even have the view permission on the list? I just tested and it is true that even when the user doesn't have the access to this list, and he cannot see the items inside the app, DataSourceInfo('TESTLISTHERE', DataSourceInfo.EditPermission) still returns true.
I will report this information to pg and see if they have any suggestions.
It will return true regardless. I tested with no permissions, and view only. Within the function, I tested both Edit and Delete capability and they always return true.
Any query that we use in this returns "True" value even if the user dont have access on SharePoint list.
How to use this query to determine if user have access on SP list or not?
This will be a conference that you do not want to miss!
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
Check out the winners of the recent 'Can You Solve These?' community challenge!
Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.
Featuring samples like Return to the Workplace and Emergency Response Applications
Features releasing from October 2020 through March 2021