{"id":197506,"date":"2026-10-08T17:44:43","date_gmt":"2026-10-08T08:44:43","guid":{"rendered":"https:\/\/support.questetra.com\/?p=197506"},"modified":"2026-10-30T09:30:54","modified_gmt":"2026-10-30T00:30:54","slug":"user-deletion-api","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/developer-blog\/user-deletion-api\/","title":{"rendered":"Offboarding Departing Employees via the System Settings REST API"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"58\" data-attachment-id=\"113212\" data-permalink=\"https:\/\/support.questetra.com\/en\/developer-blog\/message-start-event-http-browser\/attachment\/professional-banner-new-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?fit=1200%2C68&amp;ssl=1\" data-orig-size=\"1200,68\" data-comments-opened=\"0\" data-image-title=\"professional-banner-new-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?fit=1024%2C58&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en-1024x58.png?resize=1024%2C58&#038;ssl=1\" alt=\"\" class=\"wp-image-113212\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?resize=1024%2C58&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?resize=600%2C34&amp;ssl=1 600w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?resize=768%2C44&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/12\/professional-banner-new-en.png?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Suppose HR notifies you that five people will be leaving at the end of the month. When you receive notice of a departure, you set the User to [Will be deleted in the future], and delete them after the departure date has passed. This article explains how to carry out these two stages with the REST API.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The difference between deleting and using [Will be deleted in the future] comes down to two points: whether it can be undone, and whether in-progress Cases can still be processed.<\/strong> [Will be deleted in the future] can be undone by unchecking the box, and because the User remains, in-progress Cases can continue to be processed as they are. A deleted User cannot be restored under the same ID, and when a Case advances to a Step that references that User, execution may fail. In either case, Apps that reference that User, for example in the Operator settings, will show an App Settings Error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Decide the date on which you will delete the Users (hereafter, the deletion date) before you set them to [Will be deleted in the future], and make it a date after the departure date. Between setting [Will be deleted in the future] and deletion, ask the App Administrator to fix the App settings, and hand over the tasks the User holds. The on-screen procedure is explained in <a href=\"https:\/\/support.questetra.com\/en\/developer-blog\/safe-user-deletion\/\">How to Safely Delete Users Without Affecting Apps<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Both setting [Will be deleted in the future] and deleting can be done for each User from [System Settings] &gt; [User List]. The REST API is worth using when this work is repeated every month. If you set things up so that the CSV of departing employees sent from the HR system can be used as is, then from the next time you only need to swap the CSV and run it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The code examples are in Python 3 and use the Requests package to send HTTP requests. They are split into two scripts, one that sets [Will be deleted in the future] and one that actually deletes, and both are written following the &#8220;Preparing to Call the API&#8221; code. &#8220;Complete Code&#8221; at the end gathers each of the two scripts together.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Preparing the CSV<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The CSV of departing employees only needs an email address column. Prepare it in the following form and save it as <code>leavers.csv<\/code>.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>email\ndylan.thomas@example.com\nemily.dickinson@example.com<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">To find a User with the API, use the email address, because User names can be duplicated when two people share the same name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>This CSV is used both when setting [Will be deleted in the future] and when deleting.<\/strong> Prepare it when you receive notice of the departure, and when the deletion date arrives, use the same one again.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Preparing to Call the API<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The executing User needs User Manager authorization and permission for API access via Basic authentication.<\/strong> The setup steps and how to look up the API password are the same as in &#8220;Preparing to Call the API&#8221; in &#8220;Reflecting Hires and Transfers with the System Settings REST API.&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Prepare the connection target and credentials as follows.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import csv\nimport requests\nfrom requests.auth import HTTPBasicAuth\n\nBASE = &#39;https:\/\/example.questetra.net&#39;\nAUTH = HTTPBasicAuth(&#39;admin@example.com&#39;, &#39;{API Password}&#39;)\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Route API calls through the following functions.<\/strong> When a call fails, it prints the response body and then stops. How to read the response body is also explained in &#8220;Preparing to Call the API&#8221; in the same article.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>def check(r):\n    if not r.ok:\n        print(r.status_code, r.text)\n        r.raise_for_status()\n    return r\n\n\ndef call(method, path, **kwargs):\n    return check(requests.request(method, f&#39;{BASE}{path}&#39;, auth=AUTH, **kwargs))\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">When Notified of a Departure: Setting [Will be deleted in the future]<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Before running this, let the App Administrators know who is leaving and what the deletion date is.<\/strong> This is so that the App settings fixes and the task handover can be completed by the deletion date.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Will be deleted in the future] is set with <code>deletedInFuture<\/code> of <code>\/API\/UGA\/Quser\/update<\/code>. Because this API requires a User ID, look up the ID from the email address and then update.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>with open(&#39;leavers.csv&#39;, encoding=&#39;utf-8&#39;) as f:\n    for row in csv.DictReader(f):\n        found = requests.get(f&#39;{BASE}\/API\/User\/Quser\/find&#39;, auth=AUTH,\n                             params={&#39;email&#39;: row[&#39;email&#39;]})\n        if found.status_code != 400:\n            check(found)\n        if not found.ok:\n            print(row[&#39;email&#39;], &#39;Not found&#39;)\n            continue\n        call(&#39;POST&#39;, &#39;\/API\/UGA\/Quser\/update&#39;,\n             data={&#39;id&#39;: found.json()[&#39;quser&#39;][&#39;id&#39;], &#39;deletedInFuture&#39;: &#39;true&#39;})\n        print(row[&#39;email&#39;], &#39;Set to Will be deleted in the future&#39;)\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>find<\/code> returns 400 for an unregistered email address.<\/strong> Only that specific case is treated as &#8220;not found,&#8221; and other errors such as authentication errors are stopped during the <code>check<\/code> phase. This is why <code>call<\/code> is not used here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>update<\/code> does not change items that are not specified. Here only <code>deletedInFuture<\/code> is passed, so the User name, email address, and Organization remain as they are.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When a User is set to [Will be deleted in the future], Apps that reference that User, for example in the Operator settings, will show an App Settings Error, and an email is sent to the App Administrator. The email does not reach the User who ran the script unless that User is also an App Administrator. The App Administrator can learn from this email which Apps need to be fixed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">After the Departure Date: Deleting from the CSV<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Run the deletion when the deletion date arrives. <\/strong>A deleted User cannot be restored.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Deletion is also performed from the same CSV used when setting [Will be deleted in the future].<\/strong> The workflow platform does not hold departure dates. If you narrow the list by [Will be deleted in the future] and delete, you will also delete people whose departure date has not yet arrived, and Users that another person set to [Will be deleted in the future] for a different reason. Using that month&#8217;s CSV of departing employees keeps you from targeting the wrong Users.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>with open(&#39;leavers.csv&#39;, encoding=&#39;utf-8&#39;) as f:\n    for row in csv.DictReader(f):\n        found = requests.get(f&#39;{BASE}\/API\/User\/Quser\/find&#39;, auth=AUTH,\n                             params={&#39;email&#39;: row[&#39;email&#39;]})\n        if found.status_code != 400:\n            check(found)\n        if not found.ok:\n            print(row[&#39;email&#39;], &#39;Not found&#39;)\n            continue\n        quser = found.json()[&#39;quser&#39;]\n        if not quser[&#39;deletedInFuture&#39;]:\n            print(row[&#39;email&#39;], &#39;Not set to Will be deleted in the future&#39;)\n            continue\n        call(&#39;POST&#39;, &#39;\/API\/UGA\/Quser\/delete&#39;, data={&#39;id&#39;: quser[&#39;id&#39;]})\n        print(row[&#39;email&#39;], &#39;Deleted&#39;)\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Users who are not set to [Will be deleted in the future] are not deleted, but are printed out instead.<\/strong> This is because people who skipped the [Will be deleted in the future] step, or whose setting was once canceled, may remain in the CSV.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>If a User is stored as a value in a Data Item, and that value is referenced by an Operator setting or a Script Task, this cannot be prevented in advance.<\/strong> Because the User is not specified directly in the settings, the App will not show an error and no email will be sent, even if you set [Will be deleted in the future].<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>If a problem occurs after deletion, a User with Control authorization handles it.<\/strong> An example is when a Case advances to a Step that references the deleted User. What happens from there depends on the App settings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Checking for Leftover Deletions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Users remaining as [Will be deleted in the future] can be checked in a list filtered by <code>deletedInFuture<\/code>. The API that returns lists has an upper limit on the number of items returned in a single call. Specify the number per call with <code>limit<\/code>, shift <code>start<\/code> each time, and repeat until the number returned is less than <code>limit<\/code>.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>LIMIT = 10\nstart = 0\nwhile True:\n    r = call(&#39;GET&#39;, &#39;\/API\/User\/Quser\/list&#39;,\n             params={&#39;deletedInFuture&#39;: &#39;true&#39;, &#39;start&#39;: start, &#39;limit&#39;: LIMIT})\n    qusers = r.json()[&#39;qusers&#39;]\n    for u in qusers:\n        print(u[&#39;id&#39;], u[&#39;name&#39;], u[&#39;email&#39;])\n    if len(qusers) &lt; LIMIT:\n        break\n    start += LIMIT\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">This list includes people whose departure date has not yet arrived, as well as Users that another person set to [Will be deleted in the future] for a different reason. <strong>You cannot tell from this list whether a User is OK to delete.<\/strong> Use it to cross-check against the CSV of departing employees and see whether anything was left undeleted.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Complete Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This is the script that sets [Will be deleted in the future]. Before running it, read &#8220;How to Proceed with Execution&#8221; below.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import csv\nimport requests\nfrom requests.auth import HTTPBasicAuth\n\nBASE = &#39;https:\/\/example.questetra.net&#39;\nAUTH = HTTPBasicAuth(&#39;admin@example.com&#39;, &#39;{API Password}&#39;)\n\n\ndef check(r):\n    if not r.ok:\n        print(r.status_code, r.text)\n        r.raise_for_status()\n    return r\n\n\ndef call(method, path, **kwargs):\n    return check(requests.request(method, f&#39;{BASE}{path}&#39;, auth=AUTH, **kwargs))\n\n\nwith open(&#39;leavers.csv&#39;, encoding=&#39;utf-8&#39;) as f:\n    for row in csv.DictReader(f):\n        found = requests.get(f&#39;{BASE}\/API\/User\/Quser\/find&#39;, auth=AUTH,\n                             params={&#39;email&#39;: row[&#39;email&#39;]})\n        if found.status_code != 400:\n            check(found)\n        if not found.ok:\n            print(row[&#39;email&#39;], &#39;Not found&#39;)\n            continue\n        call(&#39;POST&#39;, &#39;\/API\/UGA\/Quser\/update&#39;,\n             data={&#39;id&#39;: found.json()[&#39;quser&#39;][&#39;id&#39;], &#39;deletedInFuture&#39;: &#39;true&#39;})\n        print(row[&#39;email&#39;], &#39;Set to Will be deleted in the future&#39;)\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">This is the script that deletes.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import csv\nimport requests\nfrom requests.auth import HTTPBasicAuth\n\nBASE = &#39;https:\/\/example.questetra.net&#39;\nAUTH = HTTPBasicAuth(&#39;admin@example.com&#39;, &#39;{API Password}&#39;)\n\n\ndef check(r):\n    if not r.ok:\n        print(r.status_code, r.text)\n        r.raise_for_status()\n    return r\n\n\ndef call(method, path, **kwargs):\n    return check(requests.request(method, f&#39;{BASE}{path}&#39;, auth=AUTH, **kwargs))\n\n\nwith open(&#39;leavers.csv&#39;, encoding=&#39;utf-8&#39;) as f:\n    for row in csv.DictReader(f):\n        found = requests.get(f&#39;{BASE}\/API\/User\/Quser\/find&#39;, auth=AUTH,\n                             params={&#39;email&#39;: row[&#39;email&#39;]})\n        if found.status_code != 400:\n            check(found)\n        if not found.ok:\n            print(row[&#39;email&#39;], &#39;Not found&#39;)\n            continue\n        quser = found.json()[&#39;quser&#39;]\n        if not quser[&#39;deletedInFuture&#39;]:\n            print(row[&#39;email&#39;], &#39;Not set to Will be deleted in the future&#39;)\n            continue\n        call(&#39;POST&#39;, &#39;\/API\/UGA\/Quser\/delete&#39;, data={&#39;id&#39;: quser[&#39;id&#39;]})\n        print(row[&#39;email&#39;], &#39;Deleted&#39;)\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">How to Proceed with Execution<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>First, run the script with a CSV containing only one row, and confirm in [System Settings] &gt; [User List] that the User has been set to [Will be deleted in the future].<\/strong> POST APIs rewrite the workflow platform&#8217;s data on the spot. Once you have confirmed this, run the remaining rows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Try the deletion script with a one-row CSV as well, and check the result before running the remaining rows. Because deletion cannot be undone, <strong>confirm that the deletion date has arrived before running it<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Pages<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/en\/developer-blog\/safe-user-deletion\/\">How to Safely Delete a User Without Affecting Apps<\/a><\/li>\n\n\n\n<li>Reflecting Hires and Transfers with the System Settings REST API (coming soon)<\/li>\n\n\n\n<li><a href=\"https:\/\/support.questetra.com\/en\/developer-blog\/rest-api\/\">Trying the Questetra REST API with Swagger<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360009839651\">R3175: Response Error List (Workflow Platform API)<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article explains, using a Python code example, how to set a user who has notified you of their resignation to \u201cScheduled for Deletion\u201d using the Questetra BPM Suite System Settings REST API, and then delete them after their resignation date has passed.<\/p>\n","protected":false},"author":28,"featured_media":196311,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","jetpack_seo_llms_txt_always_include":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[296],"tags":[],"faq_section":[],"class_list":["post-197506","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developer-blog"],"jetpack_publicize_connections":[],"uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?fit=2752%2C1536&ssl=1",2752,1536,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?fit=564%2C315&ssl=1",564,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?fit=768%2C429&ssl=1",768,429,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?fit=1024%2C572&ssl=1",1024,572,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?fit=1536%2C857&ssl=1",1536,857,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?fit=2048%2C1143&ssl=1",2048,1143,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=1200%2C900&ssl=1",1200,900,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=900%2C1200&ssl=1",900,1200,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=1200%2C1200&ssl=1",1200,1200,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=600%2C800&ssl=1",600,800,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=800%2C800&ssl=1",800,800,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?fit=1200%2C670&ssl=1",1200,670,true]},"uagb_author_info":{"display_name":"kobayashi","author_link":"https:\/\/support.questetra.com\/en\/author\/kobayashi\/"},"uagb_comment_info":0,"uagb_excerpt":"This article explains, using a Python code example, how to set a user who has notified you of their resignation to \u201cScheduled for Deletion\u201d using the Questetra BPM Suite System Settings REST API, and then delete them after their resignation date has passed.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-PnA","jetpack-related-posts":[{"id":82829,"url":"https:\/\/support.questetra.com\/en\/system-settings\/user\/","url_meta":{"origin":197506,"position":0},"title":"System Settings &#8211; User List","author":"Peter Glover","date":"2024-05-07","format":false,"excerpt":"The administration of User accounts can be done in this screen.","rel":"","context":"In &quot;System Settings&quot;","block_context":{"text":"System Settings","link":"https:\/\/support.questetra.com\/en\/category\/system-settings\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_user_title.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_user_title.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_user_title.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_user_title.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_user_title.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":82872,"url":"https:\/\/support.questetra.com\/en\/system-settings\/role\/","url_meta":{"origin":197506,"position":1},"title":"System Settings &#8211; Role List","author":"Peter Glover","date":"2020-03-09","format":false,"excerpt":"The administration of Roles can be done in this screen.","rel":"","context":"In &quot;System Settings&quot;","block_context":{"text":"System Settings","link":"https:\/\/support.questetra.com\/en\/category\/system-settings\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_role_title.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_role_title.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_role_title.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_role_title.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_role_title.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":82847,"url":"https:\/\/support.questetra.com\/en\/system-settings\/organization\/","url_meta":{"origin":197506,"position":2},"title":"System Settings &#8211; Organizations List","author":"Peter Glover","date":"2023-12-26","format":false,"excerpt":"The administration of Organizations can be done in this screen.","rel":"","context":"In &quot;System Settings&quot;","block_context":{"text":"System Settings","link":"https:\/\/support.questetra.com\/en\/category\/system-settings\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_organisation_title.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_organisation_title.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_organisation_title.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_organisation_title.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/12\/Gear_organisation_title.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":79770,"url":"https:\/\/support.questetra.com\/en\/data-items\/discussion-type\/","url_meta":{"origin":197506,"position":3},"title":"Discussion-Type","author":"Peter Glover","date":"2019-09-30","format":false,"excerpt":"Displays a non-editable box and a text field that saves comments in the box chronologically.","rel":"","context":"In &quot;Data Items&quot;","block_context":{"text":"Data Items","link":"https:\/\/support.questetra.com\/en\/category\/data-items\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Discussion.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Discussion.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Discussion.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Discussion.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Discussion.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":95289,"url":"https:\/\/support.questetra.com\/en\/versions\/version-1220\/","url_meta":{"origin":197506,"position":4},"title":"v12.2 2020-10-11 In [My Tasks] etc. Sorting by Title Becomes Available","author":"Hirotaka NISHI","date":"2020-09-28","format":false,"excerpt":"You can sort by Title in the Process\/Task list. It also enhances the validation of HTML tags that can be used for the Description of the input form.","rel":"","context":"In &quot;Version Info&quot;","block_context":{"text":"Version Info","link":"https:\/\/support.questetra.com\/en\/versions\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/09\/version-1220-fi-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/09\/version-1220-fi-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/09\/version-1220-fi-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/09\/version-1220-fi-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/09\/version-1220-fi-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":82721,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/service-task-calculation-datetime\/","url_meta":{"origin":197506,"position":5},"title":"Let\u2019s Set a Deadline","author":"Peter Glover","date":"2021-10-07","format":false,"excerpt":"How to set the date and time when a Task will occur, and the deadline date when it must be completed.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/04\/eye-catch-update_data-deadline-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/04\/eye-catch-update_data-deadline-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/04\/eye-catch-update_data-deadline-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/04\/eye-catch-update_data-deadline-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/04\/eye-catch-update_data-deadline-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2026\/09\/system-setting-rest-api-terminated.jpg?fit=2752%2C1536&ssl=1","_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/197506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=197506"}],"version-history":[{"count":19,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/197506\/revisions"}],"predecessor-version":[{"id":198766,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/197506\/revisions\/198766"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/196311"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=197506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=197506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=197506"},{"taxonomy":"faq_section","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/faq_section?post=197506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}