Hello @Fabian Homann , in order to obtain data from tenant A, you need to access authenticate as principal (user or guest or application/service) of tenant A. The "The user is not a member of the organization" error could be happening due to you trying to access tenant B with a non-guest user of tenant A or vice versa.
Fore more information take a look at:
Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.