Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Customize start page based on privileges

Customize start page based on privileges

Scheduled Pinned Locked Moved ASP.NET
csharpsysadminsecurityhelptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vlusardi
    wrote on last edited by
    #1

    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....

    O P 2 Replies Last reply
    0
    • V vlusardi

      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....

      O Offline
      O Offline
      OMalleyW
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • V vlusardi

        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....

        P Offline
        P Offline
        Paul Watson
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups