Customize start page based on privileges
-
I'm developing a simple intranet site for my company that will use Integrated Windows Authentication (NTLM) for authentication, to allow user access. I'd like to customize what the user sees on the start page based on his membership in a particular network user group... For example, members of the Accounting group don't need to see a button for viewing "Open helpdesk issues", but members of the IT group do... I see where web.config files can limit acess to a particular directory or page, but I'm interested in being able to turn on/off things like menu items and hyperlinks for a given page based on a user's privileges... Is there a standard way of implementing this type of functionality in .NET...??? Thanks for any help or suggestions....
-
I'm developing a simple intranet site for my company that will use Integrated Windows Authentication (NTLM) for authentication, to allow user access. I'd like to customize what the user sees on the start page based on his membership in a particular network user group... For example, members of the Accounting group don't need to see a button for viewing "Open helpdesk issues", but members of the IT group do... I see where web.config files can limit acess to a particular directory or page, but I'm interested in being able to turn on/off things like menu items and hyperlinks for a given page based on a user's privileges... Is there a standard way of implementing this type of functionality in .NET...??? Thanks for any help or suggestions....
Well there are several ways to do this. If the start page is being generated using a database the all you need to do is setup the procedures or views to run only if the user is allowed to see the info Look for information on granting permissions on objects Will
-
I'm developing a simple intranet site for my company that will use Integrated Windows Authentication (NTLM) for authentication, to allow user access. I'd like to customize what the user sees on the start page based on his membership in a particular network user group... For example, members of the Accounting group don't need to see a button for viewing "Open helpdesk issues", but members of the IT group do... I see where web.config files can limit acess to a particular directory or page, but I'm interested in being able to turn on/off things like menu items and hyperlinks for a given page based on a user's privileges... Is there a standard way of implementing this type of functionality in .NET...??? Thanks for any help or suggestions....
AFAIK there is no standard way to do this. You have to implement your own custom group level access system. For our intranet I created a User class which contained a Rights property. Pages then checked the User instance for neccesary rights and decided what to display. Hopefully .NET Framework v2.0 will have a sub-page level Forms authentication system, that will rock. Might even be a good extension project for you to try out :) regards, Paul Bluegrass South Africa Ravi Bhavnani wrote: it's sold on EBay and shipped from China (on how to inspire confidence in your product) Crikey! ain't life grand?