Home > APEX_UTIL > WORKSPACE_ACCOUNT_
Returns the number of days remaining before the developer or workspace administrator account password expires. This function may be run in a page request context by any authenticated user.
Syntax
APEX_UTIL.WORKSPACE_ACCOUNT_DAYS_LEFT (
    p_user_name IN VARCHAR2
    RETURN NUMBER
    ;
Parameters
Table: WORKSPACE_ACCOUNT_DAYS_LEFT Parameters describes the parameters available in the WORKSPACE_ACCOUNT_DAYS_LEFT procedure.
WORKSPACE_ACCOUNT_DAYS_LEFT Parameters
| Parameter | Description | 
|---|---|
| 
 
  | 
 The user name of the user account  | 
Example
The following example shows how to use the WORKSPACE_ACCOUNT_DAYS_LEFT function. It can be used in to find the number of days remaining before an Application Express administrator or developer account in the current workspace expires.
DECLARE
  l_days_left NUMBER;
BEGIN
  FOR c1 IN (SELECT user_name from wwv_flow_users) LOOP
    l_days_left := APEX_UTIL.WORKSPACE_ACCOUNT_DAYS_LEFT(p_user_name => 
c1.user_name) THEN
    htp.p('Workspace Account:'||c1.user_name||' will expire in '||l_days_left||' days.');    
  END LOOP;
END;