I wanted to sync users in Azure AD to the program I wrote, but the data got mixed in with the conference room data

Kevin Xiong 21 Reputation points
2023-08-31T09:29:42.48+00:00

I was trying to sync users in azure ad to the program I was writing, but the user's data got mixed in with the conference room's data,

I couldn't tell which were real users, which were external invitees, and which were conference room resources.

The following is Azure AD through the data, this is a conference room resource, by the way I am using SCIM2 protocol synchronization

{"schemas": [  "urn:ietf:params:scim:schemas:core:2.0:User",  "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User" ],"id": "wg84xg233cqsxeet69ur","externalId": "room2","active": true,"displayName": "room2","emails": [{"primary": true,  "type": "work",  "value": "*********************"" }],"meta": {  "created": 1687665059537,  "lastModified": 1687665059537, "resourceType": "User" },"userName": *********************"}

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

Accepted answer
  1. Marilee Turscak-MSFT 37,181 Reputation points Microsoft Employee
    2023-09-01T19:36:21.8066667+00:00

    @Kevin Xiong ,

    The two options are to use the People API in Microsoft Graph or the List orgContacts endpoint from the Microsoft Graph Rest API Beta to differentiate between users and conference rooms. https://learn.microsoft.com/en-us/graph/people-insights-overview

    Example using the People API to retrieve rooms:

    GET https://graph.microsoft.com/v1.0/me/people?$filter=personType/subclass eq 'Room'
    

    Example just retrieving people (and not rooms):

    https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/people?$filter=personType/class eq 'Person' and personType/subclass eq 'OrganizationUser'
    

    Example using the List orgContacts endpoint:
    GET https://graph.microsoft.com/beta/contacts

    This returns the list of organizational contacts for the organization.

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar questions. Otherwise let us know if you have further questions.


0 additional answers

Sort by: Most helpful

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.