Is there a way to show or hide ('+') icon of power apps based on user permission.If user has read role to sharepoint list,and when he opens the power app ,he shouldn't see ('+') icon.Similarly if user has contribute role to list ,he should able to see ('+') icon in app.
I have tried the scenario assigning read permisison to a user and tried to create an item(+) , submit an item ,shown access denied
But (+) icon is visible.How to hide this.Any ideas pls suggest.
You should be able to modify the Visible property of the ('+') with an If function.
But there is no way available to get the SharePoint user role information currently under PowerApps.
There is User() function which could be available to get the FullNmae, Email or User image property of the current user.
Which we could take use as the If condition.
So a workaround here should be, connecting to an available custom role list, lookup for the User Email, then return the role value:
Formula under the Icon Visible property should be:
If(lookup('Role List', Email=user().email).role=Contribute, true, false )
Any update for this issue?
If you need any further help on this topic, please post back.
I have applied the follwing formula:
If(LookUp(UserRole,UserEmail=User().Email).UserRole="Contribute",true,false) in visible property.But showing an suggestion near Email like:
"Part of the look up formula cannot be evaluated remotely due to service limitations.The local evaluation may produce partial results.If possible simplify the formula".
Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.
Continue your learning in our online communities.
Features releasing from October 2019 through March 2020
Coming to a city near you
Fill out a quick form to claim your user group badge now!
Connect, share, and learn with your peers year-round