58.27 EXPIRE_END_USER_ACCOUNT Procedure
This procedure expires the login account for use as a workspace end user. Must be run by an authenticated workspace administrator in a page request context.
Note:
This procedure operates on the native Oracle APEX user accounts repository and is only applicable to applications configured with Oracle APEX Accounts authentication.
Syntax
APEX_UTIL.EXPIRE_END_USER_ACCOUNT (
p_user_name IN VARCHAR2 );
Parameters
Parameter | Description |
---|---|
p_user_name |
The user name of the user account. |
Example
The following example expires an Oracle APEX account (workspace administrator, developer, or end user) in the current workspace. This action specifically expires the account for its use by end users to authenticate to developed applications, but it may also expire the account for its use by developers or administrators to log into a workspace.
Note that this procedure must be run by a user having administration privileges in the current workspace.
BEGIN
FOR c1 IN (select user_name from apex_users) LOOP
APEX_UTIL.EXPIRE_END_USER_ACCOUNT(p_user_name => c1.user_name);
htp.p('End User Account:'||c1.user_name||' is now expired.');
END LOOP;
END;
See Also:
UNEXPIRE_END_USER_ACCOUNT ProcedureParent topic: APEX_UTIL