Skip to content

SCIM Provider not processing user and group deletions #20646

@ElBeenMachine

Description

@ElBeenMachine

Describe the bug

I'm facing an issue on a couple of authentik deployments which I initially thought were down to my configuration on the app side, but after a couple of days of investigation, I feel the issue may be with authentik, or at least the way I have configured it.

I have an application, in this example I'll use cloudflare, with a SAML provider, and a SCIM backchannel provider. It successfully evaluates which users and groups should be synced TO cloudflare, and I can confirm that the users and groups have been synced over, as well as any changes made to the respective entities.

The issue I am facing, is that when a user or group is deleted in authentik, or just falls out of scope of the application, I would expect it to be deleted in the destination via SCIM. However, I am not seeing this behaviour at all. I have confirmed that this is not solely an issue with cloudflare, and I cannot see any logs on authentik's side to suggest that any delete requests had been sent.

How to reproduce

  1. Create an application with a SCIM backchannel provider
  2. Sync a user or group
  3. Update the user or group and manually sync to confirm the user or group has been changed in the destination
  4. Remove the user or group from the scope of the application
  5. Manually sync again. The user will remain in the destination.

Expected behavior

When the user or group is deleted in the source (authentik), or removed from the scope of the application, I would expect it to also be removed from the destination. However, this is not seen at all. Requiring me to manually delete these managed users or groups from the destination application.

Screenshots

No response

Additional context

On one of the application where I would have expected the SCIM deletion request to be made, I could only see PATCH and PUT requests for the provisioning and updating of users. The users that fell out of scope were not creating any DELETE requests.

GET /v1/scim/v2/ServiceProviderConfig 200 326.897 ms - 556
PUT /v1/scim/v2/Users/8a95d1d0-1422-47da-9850-7aa1813bdebe 200 93.734 ms - 554
PUT /v1/scim/v2/Users/9d19b41e-12c9-48cd-9ff4-a214d44bc8f5 200 11.794 ms - 550
PUT /v1/scim/v2/Users/7d816329-87ef-41df-90c6-5720e5767d16 200 11.293 ms - 578
PUT /v1/scim/v2/Groups/bc3d024f-c7bb-410b-836f-049d44659501 200 78.853 ms - 528
GET /v1/scim/v2/Groups/bc3d024f-c7bb-410b-836f-049d44659501 200 11.416 ms - 528

Deployment Method

Kubernetes

Version

2026.0.2

Relevant log output

I do not know which logs would be helpful in this case, unfortunately. But I would be happy to provide them if someone could help point me in the right direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAdd this label to issues that need to be triaged

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions