Situation:
Web App Has Three Layers A, B, and C. Each user has his/her own permissions. So for example, how would I disable layers A and C for USER1, and have all layers available for USER2. Is there an example somewhere ?
Tom,
There is not a simple step by step for this but you can achieve your goal by taking portions from a couple of threads.
https://community.esri.com/groups/web-app-builder-custom-widgets/blog/2019/02/21/exclude-programmatically-a-layer-from-layerlist
https://community.esri.com/thread/221787-show-hide-layers-widget-based-on-portal-named-user-level
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.