cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pn1995
Level: Powered On

Security on PowerApps Field

Hi

We have a very simple PowerApps form.

 

On two of the fields we have controlled who can edit these by adding a "DisplayMode" formula as  If(User().Email = "xxx@xxxx.co.uk", Edit, View)

Capture.PNG

 

This works fine and the fields are only editable by the person logging on with that email address.

 

However we have another field that is drop down and has a number of options eg option 1, option 2, option 3.

 

We just want "option 3" available to certain people ie those that logon with xxx@xxx.co.uk

 

Anyone any idea how to do this?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Security on PowerApps Field

Hi @pn1995 ,

 

What is the column type of the dropdown field?

What datasource is it? Sharepoint or what?

Do you want the specific user has permission to select "option 1" "option2" "option3", and the others can only has permission for "option1" and "option2"?

The easiest way to solve this is to copy one dropdown based on this,and the other dropdown's items is "option1","option2",and then set the visible of the copied one is true for the others, and the previous dropdown's visible is true for the specific user.

 

I test with SP list,and the dropdown field is one choice type,it as next, you can try the following workaround.

DataSouce:

Choice(option1,option2,option3)

Choice2(option1,option2)

20190314dropdownpermission1.PNG

App test:

Choice_DataCard1.Visible:If(User().Email="xxx@xxx.xxx.com",true)

Choice2_DataCard1.Visible:If(User().Email<>"xxx@xxx.xxx.com",true)

20190314dropdownpermission2.PNG

 

Hope this could be helpful.

 

Best Regards.

Yumia

2 REPLIES 2
Community Support Team
Community Support Team

Re: Security on PowerApps Field

Hi @pn1995 ,

 

What is the column type of the dropdown field?

What datasource is it? Sharepoint or what?

Do you want the specific user has permission to select "option 1" "option2" "option3", and the others can only has permission for "option1" and "option2"?

The easiest way to solve this is to copy one dropdown based on this,and the other dropdown's items is "option1","option2",and then set the visible of the copied one is true for the others, and the previous dropdown's visible is true for the specific user.

 

I test with SP list,and the dropdown field is one choice type,it as next, you can try the following workaround.

DataSouce:

Choice(option1,option2,option3)

Choice2(option1,option2)

20190314dropdownpermission1.PNG

App test:

Choice_DataCard1.Visible:If(User().Email="xxx@xxx.xxx.com",true)

Choice2_DataCard1.Visible:If(User().Email<>"xxx@xxx.xxx.com",true)

20190314dropdownpermission2.PNG

 

Hope this could be helpful.

 

Best Regards.

Yumia

Administrator
Administrator

Re: Security on PowerApps Field

Thanks for posting in the community @pn1995 - can you review the above reply and update the thread if it was helpful?

 

Thank you,

 

@TopShelf-MSFT 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 194 members 4,775 guests
Please welcome our newest community members: