er (<code>30</code>)</li>
<li>Maintainer (<code>40</code>)</li>
<li>Owner (<code>50</code>). Valid for projects in <a href="https://gitlab.com/gitlab-org/gitlab/-/issues/21432">GitLab 14.9 and later</a>.</li>
</ul>
<h2>Add a member to a group or project</h2>
<p>Adds a new member. You can specify a user ID or invite a user by email.</p>
<p><code>plaintext
POST /groups/:id/invitations
POST /projects/:id/invitations</code></p>
<p>| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ---