OrganizationFromTenantGuidNotFound

Marco Antonio Vazquez Cruz 20 Reputation points
2024-04-18T14:48:35.5366667+00:00

Good morning, I decided to create a question regarding OrganizationFromTenantGuidNotFound since previous questions have a different implementation. I'm working with Ruby On Rails, and I implemented the code from this repository: https://github.com/microsoftgraph/msgraph-sample-rubyrailsapp (The link is found within the dashboard of entraid/App Registrations/my application/Quickstart). I'm attaching screenshots where:

Screen 1: It's the overview tab of my application. Here you can see the tenant_id: b0e37b8c-193c-40e2-bb1c-example. 01_tenant Screen 2: I created a client secret.

01_certificates

Screen 3: I configured the URL for the callback, in this case, on my localhost port 8080.

03_certificates

Screen 4: I have added sufficient permissions.

04_permisions

Screen 5: I added a user to the application; this user has a Microsoft Entra ID Governance license.

05_users

Screen 6: The configuration of the Rails application with: a) the client id: a5eab913-01ad-4bdc-be1f-example b) secret value: MBr8Q~OUAmOjc0HzZjqWCNujCbYP5oexample

06_rails_application

Screen 7: I added a button to redirect me to the Microsoft login form; here's the form.

05.01_login

Screen 8: The user logs in successfully.

05.02_login

Screen 9: The error occurs when making the callback.

07_error Screen 10: The tenant shown: b0e37b8c-193c-40e2-bb1c-6bexample is the one displayed in the overview tab.

2024-04-18_08-46

I've explored numerous possible solutions but haven't been able to make the OrganizationFromTenantGuidNotFound error disappear. Can you help me with any suggestions?

Thank you.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,618 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,532 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 36,976 Reputation points
    2024-04-19T10:24:01.97+00:00

    Hi @Marco Antonio Vazquez Cruz

    This is because your tenant lacks a valid MS 365 license. Until then, try purchasing (or free trial) an MS 365 license for your tenant, and then assign that license to your target users.

    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.


0 additional answers

Sort by: Most helpful