Hi Iliyas,
Good Question. I am not sure and it is currently difficult for us to test it . When I am reading the error code
correct, it has to be the same domain, but it is worth to test it.
Sorry, cannot transfer ownership to email@domain.com. Ownership can only be transferred to another user in the same domain as the current owner.
The API for Data Studio has few functionalities. But the permission handling is possible. You can take a look here: https://developers.google.com/datastudio/api/reference/permissions/addMembers
Greetings Alex