procedure SetAdHocUserExpiration (user_name in varchar2, expiration_date in date default sysdate);
Updates the expiration date for an ad hoc user.
Note that although ad hoc users and roles whose expiration date has passed do not appear in the seeded WF_USERS, WF_ROLES, and WF_USER_ROLES views, they are not removed from the Workflow local tables until you purge them using Directory(). You should periodically purge expired ad hoc users and roles in order to improve performance. See: Directory.
Important: If you implement Oracle Directory Services integration, you must maintain your users only through Oracle Directory Services. You must not use the SetAdHocUserExpiration() API to update user information in the WF_LOCAL_ROLES table, because you risk discrepancies in your user information and unpredictable results if you use any tool other than Oracle Directory Services to maintain users after integrating with Oracle Directory Services.
| user_name | The internal name of the ad hoc user. |
| expiration_date | New expiration date. If null, the procedure defaults the expiration date to sysdate. |