Suggestion
Currently, Atlassian Cloud supports the Rest API with inviting a user to org. However, the REST API is available for customers using the new user management experience only.
Please provide the other REST API to invite the user for the org with original user management content.