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

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": *********************"}

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
16,544 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marilee Turscak-MSFT 27,556 Reputation points Microsoft Employee

    @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