About create user API (behavior, and plans of its alternatives)

I want ask two questions about create user API.

Question 1:
I want to create forge app which adds users to our site.
So, I want use create user API.
The REST API document says

This resource is retained for legacy compatibility. As soon as a more suitable alternative is available this resource will be deprecated.

When it will be available?

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/?&_ga=2.38604707.1082163703.1666248438-460430780.1640324331#api-rest-api-3-user-post

Question 2:
I tried to create an forge app adding a user using create user API like this:

import ForgeUI, { render, AdminPage, Fragment, Form, Macro, useProductContext} from '@forge/ui';
import api, { route } from "@forge/api";

const App = () => {

    const onSubmit = async (e) => {
        const reqData = `{
            "emailAddress": "<my email address>"
        }`;
        const res = await api.requestJira(route`/rest/api/3/user`, {
                method: 'POST',
                headers: {
                    'Accept': 'application/json',
                    'Content-Type': 'application/json'
                },
                body: reqData
        });
        console.log(`response: ${res.status} ${res.statusText}`);
    };

    return (
        <AdminPage>
        <Fragment>

          <Form onSubmit={onSubmit}>
          </Form>

        </Fragment>
        </AdminPage>
    );
};

export const run = render(<Macro app={<App />} />);

Here are scopes

read:jira-user
read:jira-work
write:jira-work
read:application-role:jira
read:group:jira
read:user:jira
read:avatar:jira
manage:jira-project
manage:jira-configuration
read:user-configuration:jira
write:user-configuration:jira
delete:user-configuration:jira
read:user.property:jira
write:user.property:jira
delete:user.property:jira

And I got following result in forge tunnel log.

response: 401 Unauthorized

Is this due to any problem in my code ?
Or is this due to the API status “experimental” ?

I ran forge tunnel as administrator account, and it is in site-admins group.
Also, it has Administraor JIRA global permission.

Hi ara

I’m a developer for the Forge platform. These questions are more related to Jira’s endpoints.
I’ll ask our internal teams and hopefully get back to you soon.