I'm trying to figure out the best way to dynamically load a website.map file based on the authenticated users Active Directory Group. Has anyone done this?
My idea was to have the various ad groups associated in the AppSettings section of the web.config as follows:
<add key="Team1_WebSite.Map" value="Team1_AD_GROUP"/>
<add key="Team2_WebSite.Map" value="Team2_AD_GROUP"/>
The key is the idea is the website.map that i would dynamically load. The value is the active directory group assocated with the website.map file.
Then in the masterpage Load event I would check ad for the group membership and load the appropriate file.
Am I on the right path?
Thanks.