Hi @31121989
Yes, it is possible.
First, you need to add users from tenant A to tenant B as guests and grant them the user administrator role. Next, create an app in tenant B and grant User.ReadWrite.All
delegated permissions.
After that log in to the app using a guest user from tenant A to get a user token (using auth code flow), and finally you will be able to use the token to call the graph API to create/edit users in tenant B.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.