Skip to content

Automatically remove Fleet users when they're removed from IdP #36785

@zayhanlon

Description

@zayhanlon

Goal

User story
As a security engineer, who doesn't have access to IdP (e.g. Okta) workflows,
I want automatic user deletion so that when a Fleet user is removed in the IdP (e.g. Okta) there are also removed in Fleet
so there’s not a dangling Fleet admin account.

Changes

Product

  • UI changes: Figma
  • CLI (fleetctl) usage changes: No changes
  • YAML changes: No changes
  • REST API changes: No changes
  • Fleet's agent (fleetd) changes: No changes
  • GitOps mode UI changes: No changes
  • GitOps generation changes: No changes
  • Activity changes: No changes
  • Permissions changes: No changes
  • Changes to paid features or tiers: No changes
  • My device and fleetdm.com/better changes: No changes
  • Usage statistics: No changes
  • Other reference documentation changes: No changes
  • First draft of test plan added
  • Once shipped, requester has been notified
  • Once shipped, dogfooding issue has been filed

Engineering

  • Test plan is finalized
  • Feature guide changes: See sub-task.
  • This is a premium only feature: Yes (SCIM is premium only already)

ℹ️  Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".

QA

Risk assessment

  • Risk level: Medium
  • Risk description: Medium because this involves deleting Fleet users account, so we need to QA this thoroughly.

Test plan

Make sure to go through the list and consider all events that might be related to this story, so we catch edge cases earlier.

  1. On Settings > Integrations > Identity Providers (IdP):
  • confirm updated description copy
  • if IdP connected, confirm updated "received" copy
  1. Connect IdP using SCIM for Okta, Entra Id, Google Workspace, authentik, etc. (other supported IdPs)
  • Once IdP connected, confirm updated "received" copy
  • Remove user from IdP and confirm they are also deleted from Fleet.
  • Note: Do not allow all admin accounts to be deleted. If only one admin account left, confirm "Delete" in Actions dropdown is disabled with new tooltip.
  • Note: Confirm API access accounts are not deleted as part of this feature.

Testing notes

Confirmation

  1. Engineer: Added comment to user story confirming successful completion of test plan.
  2. QA: Added comment to user story confirming successful completion of test plan.

Metadata

Metadata

Assignees

Labels

#g-orchestrationOrchestration product group:productProduct Design department (shows up on 🦢 Drafting board)customer-blondeletcustomer-rosnerstoryA user story defining an entire feature~customer promiseA feature request, or user story for a request, that Fleet has contractually agreed to deliver

Type

No type

Projects

Status

Done

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions