Skip to Content
0

Unlock SAP Users automatically by a Job

Nov 16, 2017 at 05:20 AM

95

avatar image

Good day everyone.

Is it possible to schedule a job that automatically unlocks the SAP users locked by administrator?

Thank you in advance.


Maria

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

avatar image
Former Member Nov 16, 2017 at 03:27 PM
0

Try the Link also:

[Enxernal link removed by Moderator]

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 16, 2017 at 03:32 PM
0

This can be done by setting Profile Parameter:

Set a profile parameter (login/failed_user_auto_unlock to unlock at midnight the locked users.

Share
10 |10000 characters needed characters left characters exceeded
Bartosz Jarkowski Nov 16, 2017 at 08:57 AM
0

I don't know if there is a job for this, but you could set up a profile parameter:

login/failed_user_auto_unlock

It will automatically unlock users each day on midnight.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hello Bartosz,

I havent tried setting up

"login/failed_user_auto_unlock" parameter but as far as I know this parameter works only for users which locked by login failure attempts, and not by administrator.

Im not sure though.

Regards,

Maria

0

Yes, you are correct. It only removes the unsuccessfull logins locks.

0

Thank you Bartosz!

0
Amit Lal Nov 19, 2017 at 04:40 AM
0

You need to write custom code using table USR02 and change the bflag mode. And schedule custom program with event defined on table USR02. In short, check with ABAP Development team, its possible. Thank you, Amit

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hello Amit,

I'll talk to the development team then. Thank you!

Maria

0

Hello again Amit,

I just want to ask, have you ever tried this program?

If you dont mind, can you share the sample custom code?

Regards,

Maria

0

please don't update USR02 UFLAG directly

Write a wrapper program that calls BAPI_USER_CHANGE to change the lock. This way you can control and validate as well as change documents being captured

1