Expires developer or workspace administrator login accounts. Must be run by an authenticated workspace administrator in a page request context.
APEX_UTIL.EXPIRE_WORKSPACE_ACCOUNT ( p_user_name IN VARCHAR2 );
Table 35-24 EXPIRE_WORKSPACE_ACCOUNT Parameters
The user name of the user account.
The following example shows how to use the
EXPIRE_WORKSPACE_ACCOUNT procedure. Use this procedure to expire an Application Express account (workspace administrator, developer, or end user) in the current workspace. This action specifically expires the account for its use by developers or administrators to log in to a workspace, but it may also expire the account for its use by end users to authenticate to developed applications.
BEGIN FOR c1 IN (SELECT user_name FROM apex_users) LOOP APEX_UTIL.EXPIRE_WORKSPACE_ACCOUNT(p_user_name => c1.user_name); htp.p('Workspace Account:'||c1.user_name||' is now expired.'); END LOOP; END;