My Oracle Support Banner

How to Unlock WebLogic Users Using Java Code (Doc ID 2400558.1)

Last updated on APRIL 12, 2023

Applies to:

Oracle WebLogic Server - Version and later
Information in this document applies to any platform.



This sample Java code unlocks WebLogic (system) users programmatically.

When entering the wrong credentials 5 times, the weblogic user will be locked on the WebLogic Server.

In Weblogic console, when one tries to unlock the user, the user is unlocked from all running servers.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Sample Code
 Sample Output

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.