What I did.
・I got "accountId"(equals to "userId") of user account (existing at directory of my organization and it's status is "active") by calling 「Get users in an organization」Organizations REST API.
・I called 「Grant user access」Organizations REST API with setting the above "accountId" to "userId" path parameter, and collect values to another parameters("orgId" of path parameter, and "role" and "resource" at request body).
・All parameters including "userId" is collect, but「Grant user access」Organizations REST API retuens "404 not found" error, and the userId I set when caling this API and the one written in error message is different.
・I thought that "userId" and "accountId" may be different, but it's wrong. The "userId" and "accountId" is the same, because There are no APIs return "userId" parameter in it's response body, and Atlassian say "get userId by calling Get users in an organization API in official page."
Does anyone have the solution about this problem?