
Announcements
Hi,
I have a power apps customized SharePoint list form where I would like to make the form "Read-only or disbaled" for the current logged in user but editable to the current logged in user's manager.
The current logged in user and manager are captured automatically in two different fields and are not editable.
Please advise.
Thank you
Hi @cooltechie. There are a few ways to do this type of thing in PowerApps. Some kind of flag for the "field user" vs. "manager user" is helpful. Sometimes, a flag like this exists in your Active Directory (usually something like "Scheduled", "Exempt", "Manager", etc.).
You could also create your own access list. Add a Permission Column of some sort. From there you can do a Filter, determine what privaleges the user should have, and switch either the Form Mode or the DisplayMode of individual fields.
Example:
If( Filter(Sharepoint_User_List,
varUserName = nameColumn,
myADFlag = X,
permissionColumn = "true"
), FormMode.Edit, FormMode.View )
I believe you're limited to a list of <2000 or less records, so this may not work for your org.
- Shane Young has a great video on Forms you should search YouTube for.
Good luck!