how to get contact lists of outlook from graph api

Manpreet Singh 56 Reputation points
2022-02-11T05:59:49.283+00:00

I could not find any link or reference to get the contact lists from outlook with help of graph API, is there an solution to this problem or any workaround?

Microsoft Security | Microsoft Graph
0 comments No comments
{count} vote

4 answers

Sort by: Most helpful
  1. Zehui Yao_MSFT 5,876 Reputation points
    2022-02-11T06:29:54.853+00:00

    Hello @Manpreet Singh , you can get a list of contacts via the following request endpoint:

    GET /me/contacts
    GET /users/{id | userPrincipalName}/contacts

    Here is the documentation for reference: https://learn.microsoft.com/en-us/graph/api/user-list-contacts?view=graph-rest-1.0&tabs=http


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Philip nicoles 381 Reputation points
    2022-02-11T06:36:08.937+00:00

    If you're looking to retrieve a single Contact from a user's Contacts folder, this can be done using the $filter query parameter.

    For more information, check this reference link:https://learn.microsoft.com/en-us/graph/api/contact-get?view=graph-rest-1.0&tabs=http

    0 comments No comments

  3. Manpreet Singh 56 Reputation points
    2022-02-11T10:24:53.68+00:00

    My client has below mentioned requirements:

    1. Create contact lists dynamically from API, which contains particular category contacts like students/professionals/business and want to send a particular email template to all the contacts in respective contact list in a single email. Like he has an email template which is for students and he wants to send that template to the students list contacts in one go.
    2. The above lists should be accessible to all the privileged users in AD in his company so they can send an email.

    We know we cannot create contact lists in outlook with API because there is no API to create or get the contact lists of outlook. I am talking about these lists.

    173519-1.png

    How can I achieve these.


  4. Ramana Rao Tamma 0 Reputation points
    2025-03-03T06:29:07.4466667+00:00

    @Zehui Yao_MSFT, if this (get contact lists) is not supported. when will this API be made available.

    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.