Approvals required from managers who already left the company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2017 09:31 AM
We have managers coming in and out of the company on a regular basis. We have new and existing tickets requiring their approval but most of these are stucked after their account was deactivated.
Is there an out of the box feature where approvals are automatically delegated to a Director / VP when manager account is deactivated?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2017 09:39 AM
Hi Charles,
I doubt we have any OOB functionality for the same. Better approach would be get a catalog task created for delegation along with the request which would be raised for User Profile deactivation.
This would help in notifying the User who would be assigned delegation rights.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2017 09:49 AM
Hi Charles,
We have implemented something similar as below.
1) Whenever user record changes to inactive, created an after business rule in sys_user table that will check if there is any pending approval for this user, if so create, create an catalog task for the help desk team for creating delegate as their user manager.
Another approach would be you can have a check whether is there any pending approval for the user record being inactive and if there are any pending approvals, check for the delegate table to check is there any active delegates, if not create a glidequery for delegate table for inserting the record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2017 09:54 AM
Hi,
A business rule on sys_user table can solve this problem
when: after
operation : update
condition: active changes to false
script:
var usr = new GlideRecord('sys_user_delegate')
usr.initialize();
usr.user = current.sys_id;
usr.delegate = current.manager;
usr.starts = gs.nowDateTime();
usr.approvals = true;
usr.insert();