{"id":22700,"date":"2025-04-16T14:35:58","date_gmt":"2025-04-16T14:35:58","guid":{"rendered":"https:\/\/clockify.me\/help\/?p=22700"},"modified":"2025-05-12T13:13:32","modified_gmt":"2025-05-12T13:13:32","slug":"deactivated-user-is-showing-as-active-in-api","status":"publish","type":"post","link":"https:\/\/clockify.me\/help\/troubleshooting\/deactivated-user-is-showing-as-active-in-api","title":{"rendered":"Deactivated user is displayed as active in API"},"content":{"rendered":"\n<p class=\"translation-block\">If you encounter an issue where a deactivated user is showing as <code>ACTIVE<\/code> via the API, it\u2019s important to understand how Clockify handles user status.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Explanation<\/h2>\n\n\n\n<p>When a user is deactivated from a specific workspace, their account is not deleted from the Clockify database.<br>If the user is a member of multiple workspaces, their account will remain active in other workspaces.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure you are using the correct endpoint:\n<ul class=\"wp-block-list\">\n<li><strong>Workspace users<\/strong>: <a href=\"https:\/\/docs.clockify.me\/#tag\/User\/operation\/getUsersOfWorkspace\"><code>GET \/v1\/workspaces\/{{ws id}}\/users<\/code><\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li class=\"translation-block\">To check membership status in a specific workspace, use the query parameter <code>?memberships=ALL<\/code>:\n<ul class=\"wp-block-list\">\n<li>Example: <code>GET \/v1\/workspaces\/{{ws id}}\/users\/?memberships=ALL<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"tip translation-block\">If the status still shows <code>ACTIVE<\/code>, it is expected behavior. The user is still considered <strong>active<\/strong> in the system due to their presence in other workspaces.<\/p>\n","protected":false},"excerpt":{"rendered":"If you encounter an issue where a deactivated user is showing as ACTIVE via the &#8230;","protected":false},"author":25,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_helpful_status":1,"_searchwp_excluded":"","footnotes":""},"categories":[75],"tags":[],"class_list":["post-22700","post","type-post","status-publish","format-standard","hentry","category-api-response"],"acf":[],"featured_image_src":null,"author_info":{"display_name":"tamara radijevac","author_link":"https:\/\/clockify.me\/help\/author\/tamara-radijevac"},"_links":{"self":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/comments?post=22700"}],"version-history":[{"count":5,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22700\/revisions"}],"predecessor-version":[{"id":23074,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22700\/revisions\/23074"}],"wp:attachment":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/media?parent=22700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/categories?post=22700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/tags?post=22700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}