cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Kingpin
Kudo Kingpin

Checking if user has permission on the lists used in PowerApps

Hi

 

I need to display an error to user if he doesnt have permission on SharePoint List used in PA saying "You dont have access to this list."

 

I tried using " DataSourceInfo" function but it seems to return "True" value in always even if the user has access on list or doesnt have access on the list.

 

How do i achieve this ?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Checking if user has permission on the lists used in PowerApps

Hi @abd3127 ,

 

If your user doesn't have the permission for the list connected to the app, then after he open the app and PowerApps will ask for the credential for SharePoint connection. Once he filled it, PowerApps will give the error message and tell that he doesn't have the permission to use this data source.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Checking if user has permission on the lists used in PowerApps

Hi @abd3127 ,

 

If your user doesn't have the permission for the list connected to the app, then after he open the app and PowerApps will ask for the credential for SharePoint connection. Once he filled it, PowerApps will give the error message and tell that he doesn't have the permission to use this data source.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Check this Out

Announcing

Class of 2020- Season 2

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,156)