How to trigger a custom code when user log in?

Hi my friends,
We are using multiple sharepoint sites at work. Users log in with AD accounts, so they dont see any login page.
I need to run a custom code when user login to website. Event receivers do not help at this point. Any suggestions?
thanks in advance

Hi Ahmet,
From your description, my understanding is that you want to trigger some custom code when users log in SharePoint.
As a solution, you could customize a login page for your SharePoint, then you could trigger your code.
You could also use httpmodule to monitor user login. Please refer to this article about how to use httpmodule:
http://sharepoint.stackexchange.com/questions/100976/get-the-current-logged-in-user-in-sharepoint-added-httpmodule
Best Regards,
Vincent Han
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • How-to trigger a function module after user logs on

    Dear All,
    We would like to trigger a function module after a user connects to our BW system.
    The user exit SUSR0001 works, but only when the user is connecting via the SAP GUI --> it is not called if the user connects via the Business Explorer or the WEB
    Any thoughts on how to achieve this?
    Any help appreciated
    Thank you
    Ioan

    Hi Ioan,
    I would recommend to post this thread in the abap forum.
    Siggi

  • How to maintain budget in 2006 when user in 2008 & vice versa?  frame 1 y

    Problem:
    User could not save changes in  original budget in 2006 & in 2008 also.
    Description
    When user tried to change original budget (FR04) in 2006 year,
    then getting a Message on screen
    “ Payment for yearly  budget 2008 samller than distrubuted budget”
    with fund center – commitment item list &
    “ Payment for the annual budget 2006 are less than annual release “
    with fund center – commitment item list.
    User add & release fund in specific fund center-commitment item which was showing in error list.
    After the ‘check’-
    then getting error ‘’ Payment for yearly  budget 2008 samller than distrubuted budget”
    with fund center – commitment item list
    Time frame only shown 2006.
    Here how to maintain budget in 2008 when user in 2006?
    In Next step
    When user tried to change original budget (FR04) in 2008 year,
    then getting a Message on screen
    “ Payment for yearly  budget 2008 samller than distrubuted budget “
    with fund center – commitment item list &
    “Payment for the annual budget 2006 are less than annual release”
    with fund center – commitment item list.
    User add & release fund in specific fund center-commitment item which as  showing in error list.
    After the ‘check’-
    then getting error
    ‘’ Payment for the annual budget 2006 are less than annual release”
    with fund center – commitment item list
    Time frame only shown 2007 2008 2009.
    here how to maintain budget in 2006 when user in 2008?
    Means user can only change budget in 2007 to 2009” when more years coming in timeframe.
    Current year :2008
    Closed year: 2006 
    In Fund Management, need change original budget payments in 2006 which is already closed.
    Purpose:
    Maintain the positive budget in fund center -Commitment item in 2006 & in 2008 which is shwoing in error.
    Can we see past-current timeframe at the same time ?

    1. copy the frames of your looping animation.
    2. create a new movieclip and paste those copied frames onto
    this movieclip's timeline
    3. from your library drag a copy of the above movieclip to
    frame 1 of your main timeline and attach a stop() to that frame.
    4. place your login textfield and ok button on frame 1 of
    your main timeline.
    5. when ok is pressed (and login) passes some condition
    direct your main timeline to frame 20.

  • How to add a custom code to standard sap menu

    Hello guru,
    will you please explain me how to add a custom code to standard sap menu?
    thanks in advance.
    Best regards.
    juan

    Hello juan,
    with SE43N you can add custom transaction codes to the existing menues.
    see http://help.sap.com//saphelp_erp2004/helpdata//EN/00/783b377bfdcf61e10000009b38f936/frameset.htm
    regards
    johannes

  • How can we enable tick icon when user click any button

    how can we enable tick icon when user click any button in captivate 6@

    hi first of all thanks for imitate action.
    actually i want to make a menu (TOC) with tick icons, on starting all ticks are disabled but when i click on any button from my menu i want to enable tick for that particular button so that user can know easily the visited button.

  • HT201269 How can I disable the code when signing on to my phone?

    How can I disable the code when signing on to my phone.  This is very annoying.

    Settings>General>Passcode Lock...enter your passcode, then: Turn Passcode Off.

  • How to retrieve password character according to user logged on ?

    Hi,
    Can anybody help on this issue .
    How to retrieve password character according to user logged on ?
    I have a program will runs on multiple logins.I like restrict so that only an admin can  retrieve the password.
    How to do it ?

    > I have a report program which uploads sensitive information to presentation server.The program is also used by multiple users for other use.(billing info on excel sheet)
    That is the bugger with generic (executable) functionality. When used for multiple requirements which are too far from each other then they break or the "lowest common denominator" calls the shots.
    If this data is being uploaded from the application server, then why don't you just protect it there. The S_DATASET for that program context will not be very usefull, because it is generic.... so you can look into using S_PATH.
    > Since a user might have already logged on to system i can only ask a password as a authorization to run the program.
    Again, this means that anyone who knows the generic password (or can display / debug the code) will be able to access the data.
    A better variant of the same would be to create a symbolic service user, and prompt for that user's password before the data is downloaded. You can then use standard functions for prompting for passwords, which also update the lock counter.
    => If the password is locked due to incorrect logins, then the program is locked for this functionality as well.
    => You can periodically lock / unlock / change the access to the program, by administrating the service user in SU01.
    => Do not give this service user any authority at all - you only want to prompt for knowledge of the password, but not actually log the user itself onto the system. (see report RDDPWCHK for some example coding)
    In German this is called "von hinten durch die brust", which means something like "unusual approach but still works anyway".
    > I like to restrict access of retrieving the password  only to a  basis team.(others user can run the program)
    I would still protect the source data itself using unique authority to access it, and then control that.
    Cheers,
    Julius

  • How can I prevent firefox to Offer to save passwords and how to remove the tick checked when I log in to gmail?

    While using firefox I am using, private browsing and not remembering any passwords.
    When I login to Gmail, the login page shows option to type in my gmail id and then password, and at the bottom, it gives the option of checkbox to remember the password next time. NOW, the problem is that, THIS CHECK box is always TICKED (Checked). I don't want it to be checked at all.
    So How can I prevent firefox to Offer to save passwords and how to remove the tick checked when I log in to gmail?
    Thank you so much.

    Hi Imran_Afzal, if you know that setting the cookie has no effect after you close your private browsing session, is it really worth finding a hack to clear the checkbox?
    I believe in order to do that you would need to use an extension or userscript. However, I haven't searched for one.
    ''Note: When searching for a userscript on userscripts.org, be very cautious as many hacked scripts have been posted lately. Check reviews and check the code to make sure it only runs on your Google site before installing.''

  • Unable to capture trace, when user logs in throuigh Web Interface

    The Trace shows 'No Records Found', when user logs in through Web Interface of CRM. But there is Trace found, when the same user logs in through logon pad and carries out normal actvities.
    sufficient auth. is provided.
    Is there any setting in ST01, through which i can get trace , when user logs in through Web Interface
    Regards

    ST10 traces 1 instance only.
    Your CRM web interface could use another instance than your backend. Go to transaction SM21, choose the appropriate server and run ST10 again.
    Succes!
    Kind regards,
    Lodewijk Borsboom

  • How to delete the temporary files when we log out from ESS

    Hello expert,
    In my company we are running ESS using ITS server, do you know how to delete the temporary files when we log out from ESS?
    Thanks.

    The temporary files used by ESS. For example paystub pdf file.

  • How to capture the role of the user logged in  CRM

    Hi
    How to capture the role of the user logged in  CRM so as to restrict the Account group selection ; While creating a sales Order .
    Can we deternine the profile in the related view .If so how , and what tables can we use to do so.

    hi,
    I think you should check CRM table AGR_USERS.
    Regards
    Michael

  • How to find the maximum no of users logged in Database

    Hi All,
    How to find the maximum number of users logged in database at particular time? I can find currently logged users or umber of sessions running on Database but I wanted to find at what time maximum number of users or sessions connected to the DB? is that possible? if yes please help me. thanks.

    Vijay wrote:
    Hi All,
    How to find the maximum number of users logged in database at particular time? I can find currently logged users or umber of sessions running on Database but I wanted to find at what time maximum number of users or sessions connected to the DB? is that possible? if yes please help me. thanks.
    select * from v$resource_limit;Lists about 20 different resources with current, maximum and limit on usage. Session count is one of them. I don't think there's any (simple, efficient) way to determine the maximum number of different users of sessions, though.
    Regards
    Jonathan Lewis

  • Issue where the cart is empty when user logs back in

    Having issue where the cart is empty when user logs back in
    Steps:
    1. User logs into the site
    2. User selects items and the cart is updated
    3. User logs out of their account
    4. User exits/closes the browsers
    5. User then reopens the browser, navigates to the site, logs in and the cart is empty
    My understanding is that the cart should be populated with the previous items since the user did not complete the order.
    I have the following settings:
    in shoppingcart.properties
    persistOrdersForAnonymousUsers=true
    persistOrders=true
    in cookieManager.properties
    sendProfileCookies=true
    in /atg/userprofiling/ProfileRequestServlet.properties
    verifyBasicAuthentication=true
    in /atg/dynamo/servlet/dafpipeline/ProfileRequestServlet.properties
    persistAfterLogout=true
    persistentAnonymousProfiles=true
    Anything else that needs to be set?
    Edited by: boyd4715 on Feb 6, 2013 11:07 AM

    I reset the properties back to their orignal state
    in shoppingcart.properties
    persistOrdersForAnonymousUsers=false
    persistOrders=true
    in cookieManager.properties
    sendProfileCookies=true
    in /atg/userprofiling/ProfileRequestServlet.properties
    verifyBasicAuthentication=false
    in /atg/dynamo/servlet/dafpipeline/ProfileRequestServlet.properties
    persistAfterLogout=false
    persistentAnonymousProfiles=false
    in /atg/userprofiling/ProfileTools.properties
    mergeOrder=false;
    Observateion:
    If an anonymous user comes to the site, adds items to the cart, leaves the site and comes back - the cart is empty - the order repository is not updated
    If a user logs into the site, adds items to the cart and then exits the browser (does not log out), comes back to the site, the selected items are in the cart
    If a usr logs into the site, adds items to the cart, logs out of the site, exits the browser, comes back to the site, the selected items are not in the cart
    An order does not get presisted to the repository until the order is confirmed.
    Based on the last item that explains why the user is not seeing any anything in their cart when they log out. If they do not log out, I assume then that the content of their cart is stored in the cookie.
    So, now the question is - why is this happening - I am not the original author of the site - just trying to get some things fixed on it.

  • How to call the custom  code in Seeded OA pages when an event Occured.

    Hi,
    I need to call a Oracle Create Task API when User saves the data from Seeded OA Page(Sales OA Page).When User Pressed on the Save button,based on Value he selected in " Sales Methodology" Field ,I need to call Call API.
    How can I achieve it.Is it suggestable to call Custom Code in OA Page.
    Thanks
    Raju.

    hi
    extend the controller
    1.) In PFR method of controller capture the event of save button.
    2.) If the save button event ocurred capture the value of Sales Methodology.
    3.) if select Sales Methodology is required value then call the API using the below method (change it accordingly)
    import java.sql.CallableStatement;
    import java.sql.SQLException;
    import java.sql.Types;
    OADBTransaction txn = getDBTransaction();
    CallableStatement cs =
    txn.createCallableStatement("begin dbms_application_info.set_module(:1, :2);
    end;");
    try
    cs.setString(1, module);
    cs.setString(2, action);
    cs.execute();
    cs.close();
    catch (SQLException sqle)
    try { cs.close } catch (Exception(e) {}
    throw OAException.wrapperException(sqle);
    thanx
    Pratap

  • Dynpro application: how to perform some  code when user click window close

    Hello,
    I'm developing dynpro application. This application needs to perform some code when exiting.
    I can do that with MODULE xxxxx AT EXIT-COMMAND. But this code can't be performed when user of application click on button closing window (classic R/3 window, not pop-up).
    Does anybody know how to bind some code to clicking on button closing window?
    Best regards,
    Josef Motl

    As far as the prompt that you get when you close the last window is coming from the counter that SAP maintains regarding the number of open sessions(windows). When this counter reaches 1, I guess they have a check to issue a prompt. There was a discussion in this forum a long time back regarding how we can know that session id like SM04. There was no conclusion reached then. Theoritically, let us know you know this id for the session in which the user opened a particular page, then you can see if that session is deleted and then take the necessary action. There are some TH_* function modules that seem to be promising, but I was not able to conclusively achieve the control over a particular session.
    See if you can look at SM04 and get an idea. Please do let us know if you find the solution.
    Srinivas

Maybe you are looking for

  • Touchpad is not working properly on Satellite L30-X10

    Hi to all of you. I've got the following issue: On my notebook the scroll on the touchpad is not working. If somebody can tell me how to fix this problem it would be kindly appreciated.

  • Crystal ReportViewer not showing on the browser but the tool bar appears with Print, export etc.

    Hello I am struggling on displaying the Report on the Browser. I am using Visual Studio 2010 and loaded my development box with client Tools. I am calling a report which is hosted on a Crystal Enterprise Server 13 on a remote location. The problem I

  • ATV2 Update?

    My ATV2 is working flawlessly, synced with iPad 2, Netflix (streaming great), etc. My question: When using the ATV2 I get a message that an update is available and gives me the option to either update or remind me later.  I have been picking "later".

  • Getting session information in servlet?

    In Apache SOAP, org.apache.soap.rpc.SOAPContext can be used as a parameter to get at session data in your servlet. The JDeveloper web services publishing wizard won't expose a method with this parameter, saying that the XML Schema mapping and/or seri

  • Modifying JAR file using java.util.jar package  over the network

    Hello, I am modifying a JAR file programmatically using java.util.jar package. The time taken to save the contents to a local disk is very less (around 1 sec) . When I tried modifying the JAR from a remote machine over the network (from mapped drive