How to get last login date of the user

Hi,
I have an application where i need the last login date of the user and if the differance between the last login date and the system date is greater than a certain range the user account should be locked automatically.Please suggest me how resolve the problem as early as possible.
Thanks and Regards
Aniruddha

Hi,
We have faced the same issue earlier. Some attributes are available in SAP API, but they are depricated by sap due to some performance issue.
Below solution will be helpful:
So we have implmented custom code in our application. We have developed one webdynpro application which will retrieve update & retrieve logon time from portal database(custom table). And we have integrated this application in desktop inner page. So this application will be invisible to the user and will executed first time when user logs into the portal.
Regards,
Charan

Similar Messages

  • Hi all, can someone help me in getting last login date of a user in CQ5 please?

    Hi all, can someone help me in getting last login date of a user in CQ5 please?

    CQ is REST based and does not have the concept of session. So there is no feature to track login or logout details.  Most of our customers use some kind of central authentication Ex- SSO hence no need arises to have such functionality built in.  However if needed you have the ability to implement such at a project level solution. Ex:- custom login modules or auth-handler by taking project specific constraints and requirements into account

  • How to get last Build date of a dll in the real time target

    Info On My Project    
       I am working on LabWindows CVI 12.0 for development . This project is a real time application for hardware, which is having Phar Lap ETS as RTOS...  
    I am facing some problems while checking Build date of my Application file( .dll)
    I have tried to use GetFileDate API. But it is not supporting for realtime Target..
    So i have tried __DATE__ macro.. That also having some problems..
    How to get last Build date of a dll from the real time target  ??
    Please Help to solve this....
    Thanks
    Vaishakh A  K

    Please reply if any one have suggestion...

  • How to know last access date for the schema's

    Dear all,
    could u plz tell me How to know last access date for the schema’s
    Regards,
    Srinivasa rao.P

    Srinivas,
    could u plz tell me How to know last access date for the schema’s
    In Oracle, we don't access schemas but schema objects.And this informationis not kept anywhere persistantly.As Amit also mentioned,if you do need it,you have to enable Auditing.
    Aman....

  • Getting last login dates and times for graphical/xwindows logins?

    Hi,
    How do I get the last login date and times for users who just use the GUI (and don't launch terminals)?
    So far such logins don't seem to show up when I do "last -f /var/adm/utmpx" or for wtmpx.
    What should I be using on solaris to get the last login dates and times for all users, whether they log in on the text console, graphical console, or remotely via ssh etc?
    Thanks,
    Link.

    Hi,
    How do I get the last login date and times for users who just use the GUI (and don't launch terminals)?
    So far such logins don't seem to show up when I do "last -f /var/adm/utmpx" or for wtmpx.
    What should I be using on solaris to get the last login dates and times for all users, whether they log in on the text console, graphical console, or remotely via ssh etc?
    Thanks,
    Link.

  • How to find last login date of a sql login?

    i want to disable the SQL Logins which are not logged in last 15 days. (I schedule a job every night to check and disable)
    For this 
    i want to find  last login date of all sql logins in an instance if the login didn't log in with in 15 days i want to disable them.
    In SYS.SYSLOGINS table we can see all the logins and 'isntname' tells us if it is SQL login or windows login. 
    but where to find the last login date of SQL log in ?
    Can any one help me?

    Hi HYDBA,
    If you use SQL Server 2005 or later, you can only get the current logon data using
    DMV likes:
    select
    max
    (login_time)as
    last_login_time, login_name
    from
    sys.dm_exec_sessions
    group
    by login_name;
    Related to your question there are two options:
    One is logon trigger,
    which is used to get current login time and login name comparing with the data from
    sys.dm_exec_sessions. If the current login time comparing with last login time is larger than 15 days, then prevent the current login.   
    Another one is to schedule a job, which is used to disable logon who’s current login time
    comparing with last login time is larger than 15 days.
    Hope it’s helpful for you.
    Regards, Amber zhang

  • How to get last modified date and time of a file which is in apache server.

    Hi ,
    I need to get last modified date and time of a file in remote machine.
    This file is in remote machine which has apache server installed.
    I am trying to get this information by connecting to apache server from client by giving absolute URI of the file to file object.
    URI is got from apache server URL by using toURI method.
    when I use lastModified method , its throwing exception , because scheme of URI is not file.
    I can't give scheme as file because ftp server is not installed on that server
    Is there any other way to get this information .

    No, unless you can use an FTP client.

  • Need to display last login details to the user after they login into portal

    Hi All,
    As per our requirement ,we need to display to the user,the following things:
    1.Last login date and time will be maintained and displayed to the user after login.
    2.Last unsuccessful login date and time will be maintained and displayed to the user after login.
    3.No. of unsuccessful retrials before locking the user will be maintained and displayed to the user after   login.
    Therefore we are creating a webdynpro application wherein we are making use of the UME API and trying to retireve these information.
    The methods i am using are:
    IUserAccount.getLastFailedLogonDate() // To fetch the Last unsuccessful login date and time
    IUserAccount.getFailedLogonAttempts() // No. of unsuccessful retrials
    IUserAccount.getLastSuccessfulLogonDate() // Last login date and time
    But the problem is IUserAccount.getLastSuccessfulLogonDate() is deprecated and i unable to use it,and also i  am unable to get the value *IUserAccount.getFailedLogonAttempts() * I am only geting zero.Can anybody let me know alternative method to get this details.
    Request you to guide me and help me to resolve this issue.
    Thanks and Regards,
    Nishita Salver

    Hi,
    I hope you are trying to show your login date from SharePoint List.
    My suggestion is 
    1. by using ECMA Script ,retrieve values from that list and show the same in Master Page.
    2. If you are not comfortable with ECMA, develop Visual Webpart and add the Visual Webpart in master page by using SharePoint Designer.
    Please let me know ,if you need further guidance.
    Don't forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
    Mahesh

  • Last Login details of the user

    Hi Everyone,
      Is there any transaction code to find out last login details and the screens accessed by the user other than SM04, SUIM, RSUSR200,
    Rgds,
    Sailatha,

    Hi,
      Some of the server programs ( ZLayouts, report programs that are in production ) have been modified by user DDIC, when checked the layout attributes, the date & time are shown as today, not able to figure out the transactions accessed by the user as SUIM is not showing the login details correctly, how do we find out the screens, programs accessed by the particular user?,
    Rgds,

  • How to get Requester Login information into the request dataset validator

    Friends,
    I need to check whether the requester is part of a group or not before submitting the request. If not I need to throw an error.
    Can you please let me know how to get Requester information.login into the request validator?

    Hi Thiago,
    I am getting the requester id from the requestData in the request data validator. Here is my full code for your reference.
    Bikash - I even tried with RoleManager service but still same error.
    public void validate(RequestData requestData)
    throws InvalidRequestDataException {
    tcUserOperationsIntf UserOppsIntf =Platform.getService(tcUserOperationsIntf.class);
    try
    tcResultSet result=UserOppsIntf.getSelfProfile();
    result.goToRow(0);
    String requesterID = result.getStringValue("Users.User ID");
    String userKey=result.getStringValue("Users.Key");
    System.out.println("Request Login:"+requesterID);
    if (isMemeber(getOIMGroupKey("testGroup"),userKey))
    System.out.println(requesterID+" is a Member");
    else
    System.out.println(requesterID+" is not a Member");
    String reason = "Note[REQUEST_SUBMISSION_ERROR].text:You are not authorized to submit this request.";
    throw new InvalidRequestDataException(reason);
    catch(Exception e) {
    e.printStackTrace();
    private String getOIMGroupKey(String GroupName) throws Exception
    String groupKey="";
    tcGroupOperationsIntf groupInstanceOps = Platform.getService(tcGroupOperationsIntf.class);
    HashMap searchFor = new HashMap();
    searchFor.put("Groups.Group Name", GroupName);
    tcResultSet results = groupInstanceOps.findGroups(searchFor);
    for (int i = 0; i < results.getRowCount(); i++) {
    results.goToRow(i);
    groupKey = Long.toString(results.getLongValue("Groups.Key"));
    System.out.println("GroupKey:"+groupKey);
    return groupKey;
    private boolean isMemeber(String groupKey,String userKey) throws Exception
    boolean member=false;
    try
    tcGroupOperationsIntf groupInstanceOps = Platform.getService(tcGroupOperationsIntf.class);
    long grpLong = Long.parseLong(groupKey.trim());
    tcResultSet grpResultSet = groupInstanceOps.getAllMembers(grpLong);
    for(int i=0;i<grpResultSet.getRowCount();i++)
    grpResultSet.goToRow(i);
    long usrKeygrp = grpResultSet.getLongValue("Users.Key");
    if (usrKeygrp==Long.valueOf(userKey))
    member=true;
    break;
    catch(Exception e) {
    e.printStackTrace();
    member=false;
    return member;
    }

  • How to get list of groups and the users from OID

    Hi,
    Can someone please tell me how to get the list of GROUPS and all the USERS in each group in OID using Java. Need to recursively get all the Groups and Users in each group using Java any samples.
    Thanks

    use examples from OTN like
    http://www.oracle.com/technology/sample_code/products/jdev/readmes/samples/ldapdatacontrol/ldapapplication/src/dc/ldap/model/LDAPSearch.java
    and modify it to your needs
    Bernhard

  • How to get currently running tcode inside the user exist

    Hi All,
    I want to write user exist for me22n & me23n, inside the user exist i want to check tcode whether tcode is me22n or me23n my user exist is ME_PROCESS_PO_CUST
    .please help me
    Thnx//

    Hello Gevan,
    Please check the value of sy-tcode for both transaction in debugging mode in the exit and write your code accordingly.
    case sy-tcode.
    when 'ME22N'
    *ur code
    When 'ME23N'
    *ur logic
    endcase.
    find the screen shot from debugging
    Thanks

  • How to find the last run date of the report..

    please any one one help me
    how to find last run date of the report...
    for example if my report is zgrir...if i am exuted in last week
    if want to find when it executed
    last run date is req
    please any one help me...

    The trasaction stat is limited because i want all the execution date even if it is 3 years ago.
    I have tryied the transaction st03 but it is limited to 3 months ago.
    check transaction STAT and it's report RSSTAT00.
    U can copy RSSTAT00 into ZRSSTAT00 and modify corresponding.
    *& Report ZDSAP *
    REPORT ZDSAP .
    DATA: d_ref TYPE REF TO data,
    d_ref2 TYPE REF TO data ,
    i_alv_cat TYPE TABLE OF lvc_s_fcat,
    ls_alv_cat LIKE LINE OF i_alv_cat.
    TYPES tabname LIKE dcobjdef-name .
    parameter: p_tablen type tabname.
    data: begin of itab occurs 0.
    INCLUDE STRUCTURE dntab.
    data: end of itab.
    FIELD-SYMBOLS : <F_FS> TYPE table,
    <F_FS1> TYPE TABLE,
    <F_FS2> TYPE ANY,
    <F_FS3> TYPE TABLE.
    REFRESH itab.
    CALL FUNCTION 'NAMETAB_GET'
    EXPORTING
    langu = sy-langu
    tabname = p_tablen
    TABLES
    nametab = itab
    EXCEPTIONS
    no_texts_found = 1.
    LOOP AT itab .
    ls_alv_cat-fieldname = itab-fieldname.
    ls_alv_cat-ref_table = p_tablen.
    ls_alv_cat-ref_field = itab-fieldname.
    APPEND ls_alv_cat TO i_alv_cat.
    ENDLOOP.
    internal table build
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING it_fieldcatalog = i_alv_cat
    IMPORTING ep_table = d_ref .
    ASSIGN d_ref->* TO <F_FS>.
    SELECT * FROM (p_tablen) INTO CORRESPONDING FIELDS OF TABLE <F_FS>.
    LOOP AT <F_FS> ASSIGNING <F_FS2>.
    *your code goes here.
    ENDLOOP.

  • Hyperion Planning Last Login Date

    Hello Everyone,
    I have a requirement where in I need to track the usage of the Hyperion Planning application. I need to build a list of inactive or dormant users and clean them up from the application.
    In order for me to achieve this, I need the Last Login date into the Hyperion Planning application.
    I read about something called Usage Tracking that needed to be turned on. A records gets added into the hsp_audit_records table.
    Can someone throw some more light on this ? My requirement is to track the planning apps usage and clean up inactive users.
    Thanks
    RS

    Hi,
    we have the same issue: some new users every week and a lot of users not using planning anymore- depending on their always changing role in the company.
    only helpful logfile we use to identify inactive/old users is: hbrlaunch.log - it logs the username and the businessrules, they execute.
    maybe you regard this approach as a helpful workaround (provided your users run businessrules at all)
    users, who run only financial reporting or who open only planning forms to passively review budgets (we have that a lot) , we would delete accidentially by this approach, because if you never save data, you never execute a businessrule attached to a webform.
    but what about following approach:
    you create a very small webform called "Confirm my user access", add a very small businessrule named "Confirm user access", which calculates almost nothing and you attach the rule to the form, give access to all users AND use option: "run on load"
    by this, the rule get's executed on opening the webform already - you could even show a member in the webform with name "Thanks for confirming your user account - it will remain active"
    Only disadvantage: you need to write a mail to all users and explicitly ask them to open that webform and confirm the user access. (Maybe you like that approach)
    Alternative might me that you attach the businessrule to the/those webform(s) - especially read-only webforms, where people don't save data or execute businessrules and which are opened most often by all users and don't tell them about that method at all.
    You then should get a pretty complete overview of your active users (userid's only I am afraid ) in hbrlaunch.log
    in addition, financial reporting has a logfile as well, so you could combine the usage of financial reporting and planning (provided you use it)
    pls. note, that the early 9.3.1 financial reporting versions have a bug and the logfile is empty= useless
    Assuming you use shared services, you probably have to attach your users into several groups- it maybe helpful to first remove the user from one central group, which blocks their access to planning application or takes the right to open planning forms- you then start your forecast, wait for their complaints and delete them 3 months later completely from all security groups - could save you some work on re-creating their access.
    We use the apache http-webserver - you can modify it, so that it's logging all datatransfer - you get there the IP-Adress and the requested application (Hyperion Planning) and the requested webforms logged - but no username.
    In the eas console, we see the last logindate, which seems to show the last date, a user requested a financial report against essbase.
    We use that information in combination with hbrlaunch.log form businessrules.
    we have the hsp_audit_trail switched on for all options-
    data: it stores all member, user and time information for every single saved value in the database - so we have between 500.000 and 1 Mio entries - it's especially useful, when your essbase crashes and your backup is a few hours old- you then can use that information to upload the remaining data-entries via smartview/exceladdin - provided you have some hours time to prepare the values in excel.
    hspaudittrail useful as well when it comes to discussion, who entered which numbers when.
    tracking of businessrule execution: should deliver same results as hbrlaunch.log
    other changes being tracked should be meaningless for your requirement, as it tracks the work of the admin-person (Dimensions, Members, Usergroups, Webforms)
    regards
    Rodian
    Edited by: Rodian Abel on 01-Apr-2010 12:20
    Edited by: Rodian Abel on 01-Apr-2010 12:33

  • Who to get Actual Shipment Date for the Sales Order

    Dear All,
         How to Get Actual Shipment Date for the given sales order.
    REgards
    sudheer

    Hai,
    If you want the actual shipment date of an order call the function module RV_ORDER_FLOW_INFORMATION and pass the order number as vbeln in the structure COMWA.select the values from the return table which corresponds to 'J' type which are delivery and get thedate.
    THis will give the actual delivery date (if created).
    Oher way is to look for vbeln in table LIPS using VGBEL = order number as the selection criteria.
    Cheers,
    Sandeep

Maybe you are looking for

  • Unable to generate sine wave

    Hello everyone! I am currently working on my Bachelor project at a company. i am stuck with a problem. I have designed a labview program for vibration test system. I have used cRIO 9076 as the controller with NI 9263(as D/A) and NI 9234(as A/D). The

  • Using an external hard drive (HD), on a network, as a scratch disc?

    I am weighing my options on creating a wireless network around an external HD. My macbook pro is getting full and I am going to do a spring cleaning and get everything in order. I pretty much know how I want to do it but I am wondering if I can use a

  • Can't boot after system update - INIT: No inittab file found

    Hi i've a pc where i installed arch linux more than one year ago Its a: PentiumII 400mhz 192mb ram 2 harddrives (don't know if i use them as a lvm or if each consists of 2 partitions used as mountpoints) graphic card nvidia TNT2 i wanted to update it

  • Importing custom images in Spaces

    How can a custom image (png, jpeg) be included in the custom Resource Catalog of a Space, so that moderators of the space can add custom images to the page(s) ?

  • Material requirment show iddferent quantity than Bill.

    Hello , I need help on issue, there is one assembly i.e. 4025457 which have child part 4956854. If we look at bill of 4025457 it shows 4956854 need 0.785 LB quantity. But if we generate WIP job for same assembly then in material requirement it showin