Does graph api /organization endpoint only return one organization?

Karen Adams 76 Reputation points
2020-08-14T02:05:17.937+00:00

Does graph api /organization endpoint only return one organization?
(aka can a user only be in one organization at a time?)

From this: https://learn.microsoft.com/en-us/graph/api/organization-get?view=graph-rest-1.0&tabs=http

"If successful, this method returns a 200 OK response code and a collection of one organization object in the response body."

It looks like there can only be one organization object. Is this true?

To add to this I am wondering why the api returns the organization object within an array. This seems to indicate that it might be possible that a user might have multiple organization objects?

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

Accepted answer
  1. Shashi Shailaj 7,626 Reputation points Microsoft Employee
    2020-08-14T05:54:38.917+00:00

    @Karen Adams ,
    Yes a user is natively part of thier parent organization and they can be given permission on resources in other organizations. For example when you invite someone from other directory to collaborate with you on your SharePoint instance, you will see external Identity or a personal account created in your organisation but they are reference objects and whenever that user tres to logon to your shsarepoint instance , your Azure AD instance will redirect them to get a token/authenticate from whereever the user's account was locally created. The GET method will give you an output as below where the id defines the organisation ID and the section details about the country , location , business phone quota and licenses available in the tenant/organization.

       {  
           "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#organization",  
           "value": [  
               {  
                   "id": "xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",  
                   "deletedDateTime": null,  
                   "businessPhones": [  
                       "+919999999999"  
                   ],  
                   "city": "Bangalore",  
                   "country": null,  
                   "countryLetterCode": "IN",  
                   "createdDateTime": "2014-09-23T04:48:27Z",  
                   "directorySizeQuota": {  
                       "used": 849,  
                       "total": 300000  
                   },  
    

    Hope this helps. In case you have any other doubts feel free to let us know or create another query if it's not related with the current topic on this thread and we will surely help you with the same. If the information provided helps, please do accept the same as answer so that its helpful to other members of the community.

    Thank you.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. James Hamil 27,101 Reputation points Microsoft Employee
    2020-08-31T18:31:50.173+00:00

    Hi, are there any updates with this case? If not, please select the appropriate response as "Answered." Otherwise please let us know how we can assist you.

    1 person found this answer helpful.
    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.