I have to create a folder at user creation time and also have to restrict other users from accessing that folder, so only that particular user can access that folder.
So finally I decided to allow and deny access to that folder using web.config. I don't want to do manual setting for every user. So how can I create dynamic folder authorization setting in web.config.
<location path="secure/files/support@userid.com">
<system.web>
<authorization>
<allow users="support@userid.com"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
Is there another way to do this?