expired invite #407

Open
opened 2025-11-20 05:11:01 -05:00 by saavagebueno · 6 comments
Owner

Originally created by @sethgo-amdep on GitHub (Aug 7, 2023).

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). **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 2025-11-20 05:11:01 -05: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

@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.

@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}
@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?

@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!

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#407