on 01-21-2013 4:40 AM
Hello,
I need a custom ABAP code to unlock users who are locked due to incorrect login attempts. I plan to schedule it as a background job hourly for Saturday and Sunday nights where no support or basis personnel available.
Thank you,
Chathuranga.
You can use FMs BAPI_USER_GETLIST to read users from system, BAPI_USER_GET_DETAIL for check is user locked, BAPI_USER_LOCK/BAPI_USER_UNLOCK for lock/unlock users.
Regards,
Roman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is what I did
Logic for the Report
List the locked users with failed login attempts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chathuranga,
Check table USR02 with an input to field User Lock (UFLAG)=128 (purely incorrect password lock), that will help you identify users locked due to incorrect login attempts.
You may write a simple abap report to query this table and identify users with uflag status 128. Next piece of code should be to update this uflag =0 for the identified list of users.
You may schedule this report after testing in background.
Regards,
Deepak Kori
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.