We’re looking for a way to invite members to a group programmatically via API using the member’s email. For our use case, using an individual’s GitLab username is a vulnerability, because if a group admin mistypes that user’s GitLab username, then we will be sharing access to the codebase with the wrong individual. Our system maintains employee work emails / personal emails, so being able to provision a group membership invitation based on email would be extremely useful. This is the API I was reviewing: https://docs.gitlab.com/ee/api/members.html#add-a-member-to-a-group-or-project
I see that you can invite individuals based on email directly from GitLab: https://docs.gitlab.com/ee/user/project/members/#invite-people-using-their-e-mail-address
Is this available via API?
Ideally, this would be similar to GitHub’s endpoint for group membership invitations: