SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

Adding a Custom Disclaimer Page to Moss 2007

Last post 05-07-2008, 5:13 PM by zootmastaflex. 2 replies.
Sort Posts: Previous Next
  •  05-07-2008, 4:17 PM 10514

    Adding a Custom Disclaimer Page to Moss 2007

    I am trying to add a custom aspx disclaimer page to my moss 2007 portal. The page is to be displayed when the user first logs on to the portal before they are allowed access to the default page. The have to either accept or decline the disclaimer. Acceptance of the disclaimer should fire an event to update a boolean custom user attribute in the user profile and redirect to the portal default page, and declining the disclaimer should close the browser.  

    I want to include an http handler to intercept the request for any part of the url for the portal and check whether the user has accepted the disclaimer and then if they have it should automatically redirect to the default page and if not it should redirect to the disclaimer page where they have to accept to gain access.

    I have created the page in vs 2005 and installed it as a feature on the portal, but currently it just displays the text as a site. It doesnt do anything Any ideas where I'm going wrong or how to go about this?

  •  05-07-2008, 4:52 PM 10518 in reply to 10514

    Re: Adding a Custom Disclaimer Page to Moss 2007

    Hi,

    This post is in the wrong section, it should be in the SharePoint 2007 section :)

    There are a couple of issues to deal with here. If the user is a new user to the site, they will not have  a profile created unless you've run some sort of script to create all users (profiles ares created the first time a user successfully logs into the site). So you wont be able to get a value from a User Profile to determine if the user has accepted the disclaimer or not (it might fail and that could be enough for you, I'm not sure of your criteria).

    I've done this before by using a HTTP Module and checking for a flag set in the AD (as all users are guaranteed to be there), then I direct the user to either the default MOSS page or special page where they can accept or decline the terms. I store a version nnumber of the terms to check against so that if the terms change, by incrementing a new value the users are again prompted to agree. It keeps the legal eagles happy anyway.

    The http module always runs and checks the user at login.

     


    Paul Leigh
  •  05-07-2008, 5:13 PM 10521 in reply to 10518

    Re: Adding a Custom Disclaimer Page to Moss 2007

    Hi thanks for this Its my first time using the site so I dont really know where to put stuff.

    Well if the value returned from the check is null meaning that the user has no profile, then they will not have accepted the disclaimer, so that is fine.

    How will i set the flag in AD if i use it? and what sort of check could i use to check wether it had been accepted or not. Do you have an example I could use? If the http module works correctly no users can get past the disclaimer check and access an exact URL or a particular mysite? I dont really want to involve AD as my client is very picky about their security.

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems