cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
abd3127
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
v-monli-msft
Community Support
Community Support

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
v-monli-msft
Community Support
Community Support

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,510)