Start extent determined by user login?

109
1
02-11-2019 03:05 PM
BrandiKirchhoff
New Contributor III

Is there any customized code that will start an application map based on the user login information?  We are developing an Web AppBuilder application that will have both state and region end-users and we would like the start up map to open with either the state or region of the user logging into the map.  We are predominantly using Typescript API but can also use JavaScript APIs in our application.  Thank you for any assistance.

Tags (1)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Brandi,

   Here is a thread that shows you how to get the current logged in user in WAB:

https://community.esri.com/thread/185734-using-portalutils-to-get-current-logged-user-wont-work-for-... 

I don't have anything for setting the extent based on that user  though.

0 Kudos