Skip to content
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

Open
1 task done
Robert-Wright-NTT opened this issue Jul 23, 2024 · 2 comments
Open
1 task done
Labels
Type: Support Any questions, information, or general needs around the SDK or GitHub APIs

Comments

@Robert-Wright-NTT
Copy link

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

  • I agree to follow this project's Code of Conduct
@Robert-Wright-NTT Robert-Wright-NTT added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Jul 23, 2024
@nickfloyd nickfloyd added Type: Support Any questions, information, or general needs around the SDK or GitHub APIs and removed Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Jul 24, 2024
@nickfloyd
Copy link
Contributor

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!

@Robert-Wright-NTT
Copy link
Author

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
Robert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Support Any questions, information, or general needs around the SDK or GitHub APIs
Projects
Status: 🛑 Blocked/Awaiting Response
Development

No branches or pull requests

2 participants