Skip to content

fix: map deactivated Slack users to STATUS_DISABLED instead of STATUS_DELETED#74

Open
c1-dev-bot[bot] wants to merge 1 commit intomainfrom
fix/deactivated-user-status-disabled
Open

fix: map deactivated Slack users to STATUS_DISABLED instead of STATUS_DELETED#74
c1-dev-bot[bot] wants to merge 1 commit intomainfrom
fix/deactivated-user-status-disabled

Conversation

@c1-dev-bot
Copy link

@c1-dev-bot c1-dev-bot bot commented Feb 25, 2026

Summary

  • When a user is deactivated in Slack, the Slack API sets the Deleted field to true. This field indicates deactivation, not permanent deletion.
  • The standard API code path in userResource() was mapping Deleted: true to STATUS_DELETED, causing ConductorOne to display these users as "Deleted" (red) instead of "Suspended" (yellow).
  • The SCIM API code path in scimUserResource() already correctly maps inactive users (Active: false) to STATUS_DISABLED.
  • This fix aligns the standard API path with the SCIM path by mapping Deleted: true to STATUS_DISABLED, which the ConductorOne UI displays as "Suspended" — the correct representation for deactivated Slack users.

Test plan

  • Deactivate a user in a Slack workspace
  • Run a sync with the Slack connector (standard API path, non-Business+ plan)
  • Verify the user shows as "Suspended" in ConductorOne instead of "Deleted"
  • Verify active users still show as "Active"
  • Verify the SCIM API path continues to work correctly for Business+ workspaces

Automated PR Notice

This PR was automatically created by c1-dev-bot as a potential implementation.

This code requires:

  • Human review of the implementation approach
  • Manual testing to verify correctness
  • Approval from the appropriate team before merging

…_DELETED

Slack's API sets the `Deleted` field to `true` for deactivated users, not
permanently deleted users. The standard API code path was mapping this to
STATUS_DELETED, causing ConductorOne to show deactivated Slack users as
"Deleted" instead of "Suspended" (the display for STATUS_DISABLED).

The SCIM API code path already correctly maps inactive users to
STATUS_DISABLED. This change aligns the standard API path with the SCIM
path and with Slack's actual semantics.
@c1-dev-bot c1-dev-bot bot requested a review from a team February 25, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants