How to get the authorization for the graph API

Ferg Jiang (CSI INTERFUSION INC) 0 Reputation points Microsoft External Staff
2024-06-05T14:19:52.7866667+00:00

Hi experts,

Our team is using the graph API to enable people searching for emails in the organization and getting necessary profile data from it. However, as the project does not require SDL links and Privacy links, we are unable to proceed with configuration. what should we do, Is there any other way to authenticate through the GARPH API or any other way to search for emails in the organization?

Thanks

Ferg

Microsoft 365 and Office Install, redeem, activate For business Windows
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hitesh Pachipulusu - MSFT 3,620 Reputation points Microsoft External Staff
    2024-06-05T19:18:52.9+00:00

    Hello @Ferg Jiang,Thank you for contacting Microsoft Support.

    Instead of user-based authentication, you can use app-only authentication. This approach allows your application to authenticate without requiring a user’s interaction.

    To achieve this, you’ll need to register your app in Azure AD and obtain an application ID (Client ID) and an application secret (Client Secret).

    With these credentials, your app can authenticate directly with the Graph API using OAuth 2.0 in Postman.

    Please refer https://learn.microsoft.com/en-us/graph/use-postman.

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


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.