In Entra ID, how to access the MS Saleshub (Dynamics CRM) via API from Tenant A to Tenant B

Fabian Homann 46 Reputation points
2024-01-11T08:50:08.4033333+00:00

Hello, I would like to use incoming data from Entra ID from tenant A to use this data for an entry in tenant B in the Saleshub. I already have an application in both tenants that is configured as a multitenant. Tenant B has Dynamics CRM user impersonate rights. Tenant A has no rights. If I now try an API call with the ID's of App Tenant A, I get the error message, "The user is not a member of the organization." How should the apps for this case be structured? Greetings

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,255 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,491 Reputation points
    2024-01-12T22:35:47.55+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.