User Creation via API


I am a sysadmin at my company where we are moving from self-hosted to I’m trying to move my users over but am stuck trying to create users via the API. I think the issue is coming down to the fact that our domain is now a “group”

curl --request POST \
  --url \
  --header 'content-type: application/json' \
  --header 'private-token: REDACTED' \
  --data '{
	"email": "",
	"name": "First Last",
	"reset_password": "True",
	"username": "user.mycompany"

This returns { "message": "403 Forbidden" }

How do I programmatically invite people [using their work email addresses] to our Gitlab?