[api] Cannot delete user #353

Open
opened 2025-11-20 05:10:03 -05:00 by saavagebueno · 4 comments
Owner

Originally created by @kdre on GitHub (Jun 2, 2023).

Describe the problem
I accidently invited a user and mistyped his email address. Now I would like to delete this user as this wrong user is listed under "users". There is no way to use the UI to delete a user, so I tried it using the public api as described here: https://docs.netbird.io/api/resources/users#delete-a-user

When I try to delete the user I get as response:
{"message":"regular users can not be deleted","code":403}

I used the api before to delete groups, so I know that my access token is right ...

Expected behavior
The user should be deleted.

How can I delete the user?

Originally created by @kdre on GitHub (Jun 2, 2023). **Describe the problem** I accidently invited a user and mistyped his email address. Now I would like to delete this user as this wrong user is listed under "users". There is no way to use the UI to delete a user, so I tried it using the public api as described here: https://docs.netbird.io/api/resources/users#delete-a-user When I try to delete the user I get as response: {"message":"regular users can not be deleted","code":403} I used the api before to delete groups, so I know that my access token is right ... **Expected behavior** The user should be deleted. How can I delete the user?
saavagebueno added the feature-request label 2025-11-20 05:10:03 -05:00
Author
Owner

@mlsmaycon commented on GitHub (Jun 16, 2023):

Hello @kdre this is our fault; the delete API is only blocking; we will update the documentation.

With that said, where are you able to block the user?

@mlsmaycon commented on GitHub (Jun 16, 2023): Hello @kdre this is our fault; the delete API is only blocking; we will update the documentation. With that said, where are you able to block the user?
Author
Owner

@ApolloF commented on GitHub (Jun 18, 2023):

So a user cannot be deleted?

@ApolloF commented on GitHub (Jun 18, 2023): So a user cannot be deleted?
Author
Owner

@kdre commented on GitHub (Jun 18, 2023):

@mlsmaycon So you say, that there is no way to delete a user?

@kdre commented on GitHub (Jun 18, 2023): @mlsmaycon So you say, that there is no way to delete a user?
Author
Owner

@mlsmaycon commented on GitHub (Jun 18, 2023):

Hello @ApolloF @kdre, currently no. We will add user removal from the management system but not from the identity provider.

@mlsmaycon commented on GitHub (Jun 18, 2023): Hello @ApolloF @kdre, currently no. We will add user removal from the management system but not from the identity provider.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#353