Select to view content in your preferred language

Dynamic actions/workflows based on user/user type

319
3
03-31-2025 10:53 AM
DanCopKac
Frequent Contributor

In Experience Builder, how can I display different options within the app based on the user viewing it? For example tier 1 users should be able to edit all layers and all data columns, but tier 2 users should only be able to edit say, 3 out of 10 fields, and then further, tier 3 users should also be allowed to view, with no edit permissions. 

I was thinking of using the different pages to accommodate different workflows, but can't find a way to lock certain buttons or pages based on user. 

3 Replies
JeffreyThompson2
MVP Frequent Contributor

Every Widget should have access to the props.user object which contains all the data from the Portal about the user. There has been an issue with this object not loading reliably since at least 1.14. I have assurances it has been fixed in 1.17, but I have not had the chance to upgrade and test for myself yet.

GIS Developer
City of Arlington, Texas
DanCopKac
Frequent Contributor

Thank you. How about something in standard EB and not custom code again? Writing custom code is one thing, but having no idea when it might break with any release makes it extremely difficult to support. 

0 Kudos
WeiY
by
New Contributor

In future release, we will support page visibility restriction based on user roles or group. When available you may achieve the scenario. 

0 Kudos