Lock and Unlock user for a period of time

I need to lock a specific su01 user for a specific period of time each day.  Does anyone have any idea how to accomplish this task?

Hi Lye and Elvira,
I am not logged on, but fairly certain that calling FM BAPI_USER_GET_DETAIL will also deliver the lock status / reason and user existence check etc, which means that the program can react appropriately to the UFLAG lock and the reason for it (if coded to do so). It would also spare the select on USR02 which might change or even be blocked.
A bigger problem I see with preventing a user from doing something from a certain point in time onwards using this lock-approach, is that the user might already be logged on!
@ Elvira Knight and ELVIRA KNIGHT regarding points: You have 2 SDN ID's now. You need to logon as the ID which created the thread (Elvira Knight originally asked the question) either by using the P- or S-number from the registration or the email address (you might need to temporarily change ELVIRA KNIGHT's email address to do that). Then you will be able to assign points for the thread which you started as Elvira Knight.
Theoretically I could add the points for you, but I prefer not to interfer in the decisions and points of SDN members (it is a free world  - unless there is points collaboration...). The future of the points-system is indeed also hanging in a bit of a balance because of that reason. You can email me via the address in my business card if you need some help.
Cheers,
Julius

Similar Messages

  • Restrict SU01 to only lock and unlock user passwords

    how  to  restrict SU01 to only lock and unlock user passwords,(should not have acces to create users) What is the auth.obj I need to change ? please suggest.
    Thanks
    sr
    Message was edited by:
            sunny raj

    Restrict authorization object S_USER_GRP to activity '05'
    Cheers,
    Ben

  • Locking and unlocking users in apex

    Hi,
    I have a table with users.
    I want to lock users after 3 invalid attempts of typing password.
    And then later unlock these users.
    Does anyone have any idea how i can do this?
    -Diana-

    Diana,
    These are not Application Express user accounts, right? You'll need to maintain account status (like locked/unlocked) in your users table. Then you'll have to add code to your login process to count invalid (consecutive) password guesses and set the account status to locked when it exceeds three attempts. Then add code to prevent logins for locked accounts. Then figure out a way to unlock the accounts (probably by an admin).
    This is simply a matter of programming, i.e., taking your requirements and making your program conform to those requirements, so I'm not sure why you are asking the question.
    Scott

  • When I open my computer and use it for a period of time it freezes up and it say Mozilla Firefox is not responding. What should I do with this?

    This happened several times already that my computer freezes up and it says Mozilla Firefox is not responding. When this happen it takes a long time before I can use my computer, I would say one hour or sometimes it takes 2 hours. When it takes like 30 minutes of freezing up what I do is I force the computer to shut down by pressing start button.
    And Ihttps://support.mozilla.com/media/img/markup/page_link.png wait for 3 to 5 minutes than I press the start button again to open the computer. When computer open up the Toshiba starts loading up all files after that I can use the computer for a while. I don't if there's something wrong with my computer or something else. I have Window Vista home premium.
    Please help.
    Thanks

    Apple Does Not recommend that. Please Read.
    http://support.apple.com/kb/HT1490
    From that article
    "Portables with built-in batteries"
    Current Apple portable computer batteries are pre-calibrated and do not require the calibration procedure outlined in this article. These computers use batteries that should be replaced only by an Apple Authorized Service Provider.
    MacBook 
    MacBook (13-inch, Late 2009) and later
    MacBook Air
    MacBook Air (all models)
    MacBook Pro
    MacBook Pro with Retina display (all models)
    MacBook Pro (13-inch, Mid 2009) and later
    MacBook Pro (15-inch, Mid 2009) and later
    MacBook Pro (17-inch, Early 2009) and later
    Thanks.
    Allan Mac wrote:
    Apple recommend calibrating the battery when you buy a new Macbook and then every few months, or monthly if it used on mains all the time. This, as Apple says is to keep the battery operating at maximum efficiency. When the battery discharges and shuts the macbook down, it still has reserve power for a good number of hours. There is also a logic board battery to hold various settings.
    I rather think I will take Apples advice on using their equipment not yours, but I would be intrigued to discover what is it you know that Apple doesnt about its batteries?
    Allan

  • Capability or admingroup to lock and unlock views

    Hi all,
    I am trying to lock and unlock users via
    lockObject(com.waveset.object.Type.USER, user, map); on a lighthouse session object and unlockObject((Object) com.waveset.object.Type.USER, user, map); on a session object
    but I get the error:
    WavesetException : com.waveset.util.WSAuthorizationException: View access denied to Subject AGROUPE1 on User: UTEST1.I tried to create an admingroup with this permission
      <Permissions>
        <Permission type='User' rights='View'/>
      </Permissions>But it didn't change the error.
    Any idea so that it could work ?

    You Can disable that functionality by disabling "Action Keys Mode" in the BIOS...
    Here is the document, that will help you with it... http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • DB level to lock and unlock

    i need to create a function is_user_blocked(p_user varchar2). this functions should handle the lock and unlock users on DB level. Returns 0 if the user is not blocked, returns 1 if the user is blocked, please help me in this
    regards
    mkhaleel

    A function with a name like is_user_locked should not make any changes. If you want to lock/unlock users then create an extra function for that.
    Having said that, your checking function could look like this
    function is_user_locked(p_user in varchar2)
      return varchar2
      is
      ret varchar2(32);
    BEGIN
      select account_status
      into ret
      from dba_users
      where username = p_user;
      return ret;
    END is_user_locked; Btw: I consider a blocked user something totally different. A user session, that is blocked by another session and therefore can't continue work.

  • Statement for Lock and Unlock an Oracle user (Urgent)

    Hi DBAs.
    I just want to know about the statement used for lock and unlock the Oracle user thru sysdba suer.
    Thanks
    Hassan

    Hey,
    SQL> alter user <USERNAME> account lock;
    and
    SQL> alter user <USERNAME> account unlock;
    Cheers,
    Marcello M.
    Sorry Justin, same answer........
    Message was edited by:
    Marcello M.

  • User lock and Unlock from CUA

    Hello All,
    I have a scenario where locking and unlocking a user in a specific child system has to be done through CUA. The TCode SCUM allows to do that. However, I'm looking for the underlying BAPIs corresponding to this TCode, so that my external application can directly invoke that.
    Any pointers will be highly appreciated.
    Best regards,
    Bala

    Are you wanting to lock selectively (only in some child systems and not others)?
    What is the reason for not using SCUM?
    The BAPI is like a gun, where you enter only the user ID as the bullet (a silver one with the user's name on it).
    You then aim the gun at a target (in the destination parameter of the FM).
    When you pull the trigger, the user is locked in the target.
    The caliber of the gun depends on the authorizations of the user in the destination server connection.
    Whether or not you hit the user, will depend on how good a marksman you are on the client server.
    Cheers,
    Julius
    Edited by: Julius Bussche on Apr 2, 2009 1:02 PM

  • File Lock - How to lock and unlock a file ? Can we do that for an FTP File?

    Hi All,
    I like to retrieve a file from the FTP server using Apache Commons Net libraries.
    for example if the file size is 20MB. When the file is in the progress of copying or transferring from the FTP server i need to lock the local file which is in our local directory so that no other process will use the same local file which is in the process of copying otherwise partially copied files will be used by another process.
    the file should be locked when it was in the progress of copying from the server. I have an automatic process which will access file objects at certain time and try to process the files.
    I like to know the simplest and easiest way to lock and unlock a file object locally which is trying to copy a file from the FTP server which is of huge size.
    And also i like to know how to lock and unlock a file in general?
    Thanks,
    J.Kathir

    we can set it read only only when it complete finishing the writing.
    can we able to make the file as read-only while transferring data to file.
    How to achieve it ? pls give me some sample code

  • Keyboard lock and unlock for 8330

    I need a way to lock and unlock the keyboard.  I have searched a number of websites for an answer to my dilema and it seems several methods are mentioned but none work for me.  I need to lock the keyboard when phone is in my pocket.  Many thanks to anyone who can help.

    Well, according to your device manual, this is the procedure:
    Lock the keyboard
    If you do not set a BlackBerry® device password, you can lock your keyboard to avoid making calls and pressing keys accidentally.
    On the Home screen or in the application list, click Keyboard Lock.
    To unlock the keyboard, press the asterisk (*) key and the Send key.
    You can look further into your manual here:
    http://www.blackberry.com/btsc/microsites/search.do?cmd=displayKC&docType=kc&externalId=http--docsbl...
    Good luck.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Locking and unlocking mass users

    Hello
    How can we lock and unlock mass users?
    Edited by: Mohammed Siddiqui on Jul 16, 2008 2:37 PM

    Hi Siddique,
    Follow the below link
    Re: locking users while implementing support packs
    Regards
    Zam

  • Hi how to handel the lock and unlock the table

    Hi,
    i am having the one scenario like,for lock and unlock the table i used the function modules ENQUEUE_E_TABLE and  DEQUEUE_E_TABLE but it allowing the edit the first user and suppose to try the editing the second user it is giving the error message it correct but again the second user press any button it is leaving the program it should not happened please help me that.
    regards,
    Hari.

    Hi,
    i assume it's in table JEST
    so select:
      SELECT        * FROM  JEST
               WHERE  OBJNR  =  aufk-OBJNR
                AND   STAT   IN S_STATI
    Andreas

  • Is it possible to lock and unlock a transaction?

    Hi SDN,
    Is it possible to lock and unlock a standard transaction( for eg VA02 ) through my program?( i am creating a customized version of standard transaction ) I want to lock the transaction for my user-id and then i will update the values in that transaction and finally i will unlock it.
    I got the FM for locking at the database level.is there is any FM to lock and unlock the transaction?

    Hi,
    It may not be the best way, but maybe you could use the functionality behind transaction code SM01. Here you can lock/unlock the transaction code. If you look at the program, all it is really doing is updating table TSTC field CINFO. CINFO = 80 when unlocked, CINFO = A0 when locked. You could just update the field accordingly and then call this function module right after.
    * For locking
    CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
      EXPORTING
        TCODE = TSTC-TCODE
        LOCK = 'X'.
    * For unlocking
    CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
      EXPORTING
        TCODE = TSTC-TCODE
        UNLOCK = 'X'.
    Regards,
    Ferry Lianto

  • FM to Lock and Unlock the Tcode CJ02

    Hi,
    I want to lock and unlock the Tcode CJ02, my code is as below.When I am executing the Report, I am able to create the Settlement Rule in first Row but I am getting an Error Mesage saying " Subproject 4-0123-02-01-01-10-01 is currently processed by USER" though there is no other session open under the user name when trying to create settlement rule in second row in the loop. Wbs element that ima using for creation of settlement rules is "4-0123-02-01-01-10-01".
    loop at it_src into wa_src.
    Lock the Tcode 'CJ02'.
    Perform BDC Recording to Create Settlement Rule.
    Unlock the Tcode 'CJ02'.
    endloop.
    Regards,
    Deepthi.

    Hi, you can block the Subproject with Lock Object, you can create this under SE11
    after you have created this, use these FM for Enqueue/Dequeue,
      call function 'ENQUEUE_EZ_ODAPROF_PO'
           exporting
                mode_ztma_odaprof_po = 'E'
                mandt                = sy-mandt
                ebeln                = cod_oda
                ebelp                = cod_pos
           exceptions
                foreign_lock         = 1
                system_failure       = 2
                others               = 3.
      call function 'DEQUEUE_EZ_ODAPROF_PO'
       exporting
         mode_ztma_odaprof_po       = 'E'
         mandt                      = sy-mandt
         ebeln                      = cod_oda
         ebelp                      = cod_pos

  • Lock and Unlock a table:AFVU

    Hi Folks.
    I want to modify a standard table (AFVU )  with new user dates from User.For this,First I need to lock and unlock the table.
    When I am trying for the standard table lock object (EAFVU) ,it was not there in the system.
    Is there any way to find out the lock object for a particular table?
    How to proceed for this?
    Any Pointers are much helpful.

    Hi,
    Go to SE11 and display your table - do a where used list and select lock objects.
    I really hope when you say you are modifying a standard table you are only updating custom appends on that table, and not directly updating standard SAP fields...
    Gareth.

Maybe you are looking for

  • How do I simply remove a forgotten password from windows 7

    I put on a password on my main administrative user account because my brother constantly changes my background to stupid things, What I thought I typed in; asdfghjk;' I'm not sure what keys registered but I would like to know if I can remove my User

  • How do i play age of mythology on mac pro

    Can someone plz help with this???? how do i play age of mythology on mac pro.. thank you in advance

  • Top utilising Query in SQL server

    Hi,    Is there any query to get the top utilization query of the day?

  • Original Mac Pro Installation Discs won't allow me to reinstall!

    Hi All I just got hold of a second hand Mac Pro. All seems good until I notice that there's no iPhoto on it, and thats a bit of a must as its for a Photography Studio! Went to install from the "Mac Pro Applications Install DVD" and get an error: Aler

  • Adding hyperlinks in final cut

    hola amigos. i'm trying to add a hyperlink at the end of a video using final cut 5.1.4 i created a text window and typed it out the link http://ga6.org/campaign/whereisplanb/ but it is no hyperlink. please help. please? help? [email protected] mercy.