cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

View solution in original post

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

View solution in original post

TopShelf-MSFT
Level 10

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,198)