[GH-ISSUE #1059] expired invite #1699

Closed
opened 2026-08-05 00:43:38 -04:00 by saavagebueno · 7 comments
Owner

Originally created by @sethgo-amdep on GitHub (Aug 7, 2023).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1059

Describe the problem
when using https://app.netbird.io/ and inviting a user, if the invitation expires it is impossible to resend the invitation, or to delete the user and invite again.

Originally created by @sethgo-amdep on GitHub (Aug 7, 2023). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1059 **Describe the problem** when using https://app.netbird.io/ and inviting a user, if the invitation expires it is impossible to resend the invitation, or to delete the user and invite again.
saavagebueno added the waiting-feedback label 2026-08-05 00:43:38 -04:00
Author
Owner

@mlsmaycon commented on GitHub (Aug 7, 2023):

Hello @sethgo-amdep, we are working on a proper UI for it, but recently we added API support for resending the invite: See the documentation here: https://docs.netbird.io/api/resources/users#resend-user-invitation

It will need a user Id that you can get with this API: https://docs.netbird.io/api/resources/users#list-all-users

And a token: https://docs.netbird.io/api/guides/authentication#using-personal-access-tokens

<!-- gh-comment-id:1668656865 --> @mlsmaycon commented on GitHub (Aug 7, 2023): Hello @sethgo-amdep, we are working on a proper UI for it, but recently we added API support for resending the invite: See the documentation here: https://docs.netbird.io/api/resources/users#resend-user-invitation It will need a user Id that you can get with this API: https://docs.netbird.io/api/resources/users#list-all-users And a token: https://docs.netbird.io/api/guides/authentication#using-personal-access-tokens
Author
Owner

@sethgo-amdep commented on GitHub (Aug 7, 2023):

@mismaycon thanks so much! I'll give that a try.

<!-- gh-comment-id:1668665650 --> @sethgo-amdep commented on GitHub (Aug 7, 2023): @mismaycon thanks so much! I'll give that a try.
Author
Owner

@tafaust commented on GitHub (Jul 13, 2024):

Hey @mlsmaycon, I tried the approach that you proposed and it doesn't work for me.
I invited another person some time ago and was able to assign the owner right to that person (even though the invitation is still pending). Now, the invitation expired and we practically have no owner access to our hosted netbird offer anymore.

The command I tried:

curl -X POST "https://api.netbird.io/api/users/$(curl -X GET https://api.netbird.io/api/users -H 'Accept: application/json' -H 'Authorization: Token <MY_TOKEN>' |jq -r '.[] | select(.role | contains("owner")) | .id')/invite" -H 'Authorization: Token <MY_TOKEN>'

The response to my query is

{"message":"internal server error","code":500}
<!-- gh-comment-id:2227110220 --> @tafaust commented on GitHub (Jul 13, 2024): Hey @mlsmaycon, I tried the approach that you proposed and it doesn't work for me. I invited another person some time ago and was able to assign the owner right to that person (even though the invitation is still pending). Now, the invitation expired and we practically have no owner access to our *hosted* netbird offer anymore. The command I tried: ```shell curl -X POST "https://api.netbird.io/api/users/$(curl -X GET https://api.netbird.io/api/users -H 'Accept: application/json' -H 'Authorization: Token <MY_TOKEN>' |jq -r '.[] | select(.role | contains("owner")) | .id')/invite" -H 'Authorization: Token <MY_TOKEN>' ``` The response to my query is ```json {"message":"internal server error","code":500} ```
Author
Owner

@tafaust commented on GitHub (Jul 13, 2024):

Also, please make sure that owner rights can only be granted to users that actually have access to their accounts! Can you please help me to recover my netbird instance?

<!-- gh-comment-id:2227112452 --> @tafaust commented on GitHub (Jul 13, 2024): Also, please make sure that owner rights can only be granted to users that actually have access to their accounts! Can you please help me to recover my netbird instance?
Author
Owner

@nazarewk commented on GitHub (Apr 28, 2025):

Hello @sethgo-amdep,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

<!-- gh-comment-id:2835637152 --> @nazarewk commented on GitHub (Apr 28, 2025): Hello @sethgo-amdep, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@sethgo-amdep commented on GitHub (Apr 28, 2025):

this was resolved some time ago. The api workaround was fine, but now there is a reinvite button in the gui.

<!-- gh-comment-id:2835682112 --> @sethgo-amdep commented on GitHub (Apr 28, 2025): this was resolved some time ago. The api workaround was fine, but now there is a reinvite button in the gui.
Author
Owner

@TechHutTV commented on GitHub (May 9, 2026):

Resending an expired invite is supported now - both via the API (POST /api/users/{userId}/invite, added in PR #989) and as a "reinvite" button in the dashboard. You confirmed the workaround is no longer needed back when the UI shipped, so closing this out - please reopen if you hit a fresh case where reinvite still doesn't work.

<!-- gh-comment-id:4413157270 --> @TechHutTV commented on GitHub (May 9, 2026): Resending an expired invite is supported now - both via the API (`POST /api/users/{userId}/invite`, added in PR #989) and as a "reinvite" button in the dashboard. You confirmed the workaround is no longer needed back when the UI shipped, so closing this out - please reopen if you hit a fresh case where reinvite still doesn't work.
Sign in to join this conversation.
No Label waiting-feedback
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#1699