Is it possible to access the address book with the Outlook REST API? - office365api

I know I can read contacts with the Office 365 API but I can't figure out if it's possible to fetch the contacts from the address book.

Related

Connect Microsoft Exchange to n8n

Hello my goal is to get exchange server data like:
email,firstname,lastname
and save in DB
For doing this i've read that i have to make this callback request:
https://graph.microsoft.com/v1.0/me/contacts
from microsoft graph and get the data in n8n workflow system
Hello my goal is to get exchange server data like: email,firstname,lastname
You need to clarify what data your after eg are you after a particular users personal contacts or are you after the whole organizations email details (eg similar to what you see in the Global Address List).
https://graph.microsoft.com/v1.0/me/contacts
This will give you the current users personal contacts but if your after the organizations information then you use https://graph.microsoft.com/v1.0/users or Org contacts you would use https://learn.microsoft.com/en-us/graph/api/orgcontact-list?view=graph-rest-1.0&tabs=http

Graph API - How do I determined linked contacts?

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?

Microsoft Graph API Business Fax

We are using Microsoft Graph API to fetch the contacts information from Office 365 contacts. But we are not able to fetch Business Fax information in the json. We can enter business fax in the office 365 contact manually using Phone > Other > Business Fax option.
Can any one please help us on this.
Regards
Tarunjit Singh

Global Address List Graph API

I am trying to use the Graph API inside an Office 365 add-in to get contact information out of GAL. Neither of the following queries return any contacts from the GAL, although both return some information.
beta/me/contacts?$filter=displayName eq 'John Smith'
beta/me/people?$filter=displayName eq 'John Smith'
Is it possible to get contacts from the GAL using the Graph API? I having a feeling I am not giving my app the correct permission to access the GAL.
The /me/contacts endpoint returns the contacts from your default Outlook Contacts folder. The /me/people endpoint is similar but attempts to pull information on contacts access multiple sources.
The GAL represents contact information from your organization (i.e. Active Directory). To see the contact information for other users in your organization, you use the /users endpoint. To see organizational contacts (contacts added to the AD/GAL) you need to use the /contacts endpoint (note the lack of /me/ in the path).

Creating a contact with Microsoft Graph

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.

Resources