How to fetch contact groups, also called contact lists in Outlook web (not contact folders) using Microsoft Graph API?
List contacts and list contact folders doesn't fetch contact groups.
Created a uservoice for this feature: link.
Do support if you think there's no feature currently avaliable to do this!
Related
I have 6 users running Microsoft 365 Business Basic incl. Teams Telephony Standard licence. To display customer names during incoming PSTN calls trough Teams I would like to create a company wide contacts list.
How can I create such a shared contacts list that I can populate via the Microsoft Graph API from our CRM system?
I'm building a Logic App to list all users from MS Graph.
I can get the list of all users by calling MS Graph API using OAuth authentication in my Logic App but I'm struggling to apply a filter in my custom request in MS Graph.
i.e. I have below structure in my OnPremiseAD:
OU=Site1,OU=Users,OU=TEST,DC=xyz,DC=com
OU=Site2,OU=Users,OU=TEST,DC=xyz,DC=com
OU=Site3,OU=Users,OU=TEST,DC=xyz,DC=com
OU=Site4,OU=Users,OU=TEST,DC=xyz,DC=com
...and I want to list users from OU=Site4 only.
Can someone please help?
https://graph.microsoft.com/beta/users?$filter...???
Based on Custom OU considerations and limitations:
User accounts, groups, service accounts, and computer objects that
you create under custom OUs aren't available in your Azure AD tenant.
These objects don't show up using the Microsoft Graph API or in the
Azure AD UI; they're only available in your managed domain.
So I'm afraid that it's not supported to list the users under an OU via Microsoft Graph API.
See a similar post here.
https://graph.microsoft.com/v1.0/me/people/?$Search="contact1"
Result is empty if contact1 is under a user created folder - Folder1.
How can we search for COntacts from all Folders using a Single API call?
According to the questions and the comments you posted, I suppose you want to get the email-address of the people under a Contact Folder and get all contacts under the contacts folder.
For your case 1, according to the description of the content Use the People API in Microsoft Graph to get information about the people most relevant to you, we can get the people most relevant to the signed-in user (/me), or to a specific user in the signed-in user’s organization, instead of the people under a Contact Folder.
For your case 2, we use the API for getting the contacts, It will only return contacts under the default folder. Single contact file directories can only be obtained through this API. We can refer to the simple code in this content to get contacts in the contact folder.
In Office 365 Contacts UI you can have contacts that are linked. When retrieving the contacts through the Graph API endpoint https://graph.microsoft.com/v1.0/me/contacts there is no field that indicates that the contacts are linked.
Contacts can be linked when they are created with the same email or you can specify any two contacts to link. So it is important to know when contacts are linked as they share data.
Using https://outlook.office.com/api/beta/me/contacts I have the PersonId field which allows me to determine a link.
How do I determine if a contact is linked and who it is linked to in the Graph API?
What are the prerequisites to use Create Contact with Microsoft Graph? Can I use it to store contacts in Azure Table Storage?
I have some 50,000 contacts in a SQL database. What service should I have to use to manage these contacts via Microsoft Graph?
To add to what #RasmusW said, the contacts APIs in Microsoft Graph store contacts to Outlook. After migrating those contacts to Graph, you would then be able to go to outlook.com/?path=/people to see the contacts. Of course, the specific place where the contacts are stored is comparatively unimportant since they are available via the API and can be read, modified, or removed from any application that can consume the API.
Microsoft Graph is an API to access data in Azure Active Directory and Office 365. It can't be used to access another database.