anhtuan159
anhtuan1592mo ago

Handling User Data After Deletion

Hello team, I’m acting as an admin and I would like to delete a user. After calling the API https://zitadel.com/docs/apis/resources/user_service_v2/user-service-delete-user to delete the user, how should I handle the data related to that user? Could you please help me resolve this issue?
ZITADEL Docs
The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found..
4 Replies
Rajat
Rajat2mo ago
hey @anhtuan159 whats the issue taht needed to be resolved?. Did the deletion worked?.
anhtuan159
anhtuan159OP2mo ago
The API for deleting a user works correctly. However, I would like to confirm whether related user data—such as identity provider (IDP) information—is also deleted when this API is called.
Rajat
Rajat2mo ago
hey @anhtuan159 you can just simply try to [search user with deeper info] (https://zitadel.com/docs/apis/resources/user_service_v2/user-service-list-users) or just quickly run get my user and expect a user not found, that should be it in that case 🙂
Gigi the Giraffe (Zitadel)
🎉 Looks like you just helped out another community member! Thanks for being so helpful <@1346540274674827395>! You're now one step closer to leveling up—keep up the amazing peer support! 🚀

Did you find this page helpful?