-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT]: Invitation email to an organisation has been accepted #2954
Comments
Hey @Robert-Wright-NTT thanks for reaching out. So I think what you're looking for is the org pending invite endpoints from the GitHub REST API. This functionality is present in both Octokit.net and our Generated dotnet-sdk For Octokit.net you could use the following API: For the new Generated SDK you could use: I hope that helps! |
Hi Nick, Thanks for getting back to me. I'll make use of this endpoint; but what I was looking for was at the point that the user actually joins the organisation when they're redirected to the website for the organisation they're joining. What I want to do is store the user in my database once they're joined the organisation. I can see pending invites as per the endpoint you supplied above. But at what point we I get notified that they've accepted the invite. I could store the user in my database with a status of Pending, but how will I know to change the status to Active? Hope this makes sense Many thanks |
Describe the need
When an user receives an email invite to join an Organisation; is there a way to check that they've joined the organisation. The reason for this is that I'd like to add that user as a member in my database once they've accepted the invite and are actually a member of the organisation.
SDK Version
Octokit v13.0.1
API Version
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: