Hi,Just curious is it possible for widget controller to hide or disable based on certain role or group programmatically?
You can use the props.user object to get the user information from the Portal. I have found this method to be unreliable in Developer Edition 1.14. It was supposedly fixed in 1.16, although I have not seen official confirmation or tested it. Once you have the Portal information, the easiest way to hide the Widget Controller would be to target it with CSS and use display: none.
https://community.esri.com/t5/arcgis-experience-builder-questions/portal-user-information-undefined-sometimes-in/m-p/1537897#M14817
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.