none
Outlook People REST API RRS feed

  • Question

  • Hello, I am developing mail client system by Office 365 REST API.

    In this system, I try to get global address list using Outlook People REST API.
     [Outlook People REST API]
         GET https://outlook.office.com/api/beta/me/people/
    However, I can't get global address list from an account which create a new.

    In the reference, Outlook People REST API returns relevent person entities.
     https://msdn.microsoft.com/en-gb/office/office365/api/people-rest-operations

    Please tell me that how to get global address list using Office 365 REST API from new account.
    What settings need in Azure AD or office 365?

    Thursday, December 22, 2016 7:19 AM

Answers

  • Hi,

    As the documentation of the Outlook People REST API reference describes:

    'The People API returns relevant person entities with each request. A person aggregates information from across mail, contacts and social networks. The results are ordered by their relevance, which is determined by the criteria specified in the request and ranked based on multiple communication, collaboration and business relationships.'

    So, this is similar to Delve. The service returns information that's likely to be most interesting to you right now.


    Regards, Sjoukje. Blog | LinkedIn | Twitter

    • Marked as answer by yamazaki_9808 Wednesday, January 11, 2017 2:51 AM
    Friday, January 6, 2017 11:18 AM
    Moderator
  • Hi,

    You need a permission token when accessing the Graph API. This token is carried in the Authorization header of the request. In order for your app to authenticate with Azure AD and call the Graph API, you must add it to your tenant and configure it to require permissions (OAuth 2.0 permission scopes) for Azure Active Directory.

    Fore more information on adding and configuring an app you can refer to Integrating Applications with Azure Active Directory.


    Regards, Sjoukje.

    Please remember to click "Mark as Answer" on the post that helps you.

    • Marked as answer by yamazaki_9808 Wednesday, January 11, 2017 2:51 AM
    • Unmarked as answer by yamazaki_9808 Wednesday, January 11, 2017 2:51 AM
    • Marked as answer by yamazaki_9808 Wednesday, January 11, 2017 2:51 AM
    Tuesday, January 10, 2017 9:07 AM
    Moderator

All replies

  • Hi,

    The Outlook People REST API doesn't provide this type of information. Instead, you can use the Azure AD Graph API: https://msdn.microsoft.com/Library/Azure/Ad/Graph/api/api-catalog


    Regards, Sjoukje. Blog | LinkedIn | Twitter

    Wednesday, December 28, 2016 2:04 PM
    Moderator
  • Thank you for your reply.

    However, I still have a question. 
    What kind of information is provided by the Outlook People REST API ?
    I can't understand "relevent person entities" clearly...

    Friday, January 6, 2017 12:21 AM
  • Hi,

    As the documentation of the Outlook People REST API reference describes:

    'The People API returns relevant person entities with each request. A person aggregates information from across mail, contacts and social networks. The results are ordered by their relevance, which is determined by the criteria specified in the request and ranked based on multiple communication, collaboration and business relationships.'

    So, this is similar to Delve. The service returns information that's likely to be most interesting to you right now.


    Regards, Sjoukje. Blog | LinkedIn | Twitter

    • Marked as answer by yamazaki_9808 Wednesday, January 11, 2017 2:51 AM
    Friday, January 6, 2017 11:18 AM
    Moderator
  • Thank you for your reply.

    I tried to use Azure AD Graph API to get global address list.
     GET https://graph.microsoft.com/beta/contacts/

    However, the API needs a permission of Directory.Read.All.
    This permission can get with administrator's consent.

    But, I want to get global address list without administrator's consent.
    Graph Explorer(https://graphexplorer.cloudapp.net) can get global address list without administrator's consent.

    Can you please teach me how to do it?
    Saturday, January 7, 2017 4:42 AM
  • Hi,

    You need a permission token when accessing the Graph API. This token is carried in the Authorization header of the request. In order for your app to authenticate with Azure AD and call the Graph API, you must add it to your tenant and configure it to require permissions (OAuth 2.0 permission scopes) for Azure Active Directory.

    Fore more information on adding and configuring an app you can refer to Integrating Applications with Azure Active Directory.


    Regards, Sjoukje.

    Please remember to click "Mark as Answer" on the post that helps you.

    • Marked as answer by yamazaki_9808 Wednesday, January 11, 2017 2:51 AM
    • Unmarked as answer by yamazaki_9808 Wednesday, January 11, 2017 2:51 AM
    • Marked as answer by yamazaki_9808 Wednesday, January 11, 2017 2:51 AM
    Tuesday, January 10, 2017 9:07 AM
    Moderator