Get Current User
Automatically get Current User on console.neon.tech. Report which Neon console account this browser is signed in as: email, first name and last name from Account settings > Profile. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Neon console scripts.
Input
None
Output
loggedIn requiredemail optionallastName optionalfirstName optionalFAQ
Invite Neon organization member
Invite (create) a member on the current Neon organization by email and role. Role is free-text matched case-insensitively against Neon's own invite role picker (Admin, Member). Membership is invite-based; the invitee starts as Pending until they accept (or may auto-join if their Neon account already exists, per Neon's own behavior). Returns the invitation's email, role, id and invited-at timestamp.
Remove Neon organization member
Remove a member, or cancel a pending invite, from the current Neon organization, identified by email. Checks the org's members and invitations lists to determine which branch applies: joined members are removed via "Remove from organization" (plain confirm, no re-typing required); pending invites are cancelled via "Cancel invite". Returns the removed email and whether it was a pending invite.
Neon login (Google SSO)
Log into the Neon console with Google: clicks Google and lands on your Neon projects. Skips straight to your projects if you're already signed in.
