René's URL Explorer Experiment


Title: Build Java apps with Microsoft Graph and app-only authentication - Microsoft Graph | Microsoft Learn

Open Graph Title: Build Java apps with Microsoft Graph and app-only authentication - Microsoft Graph

Description: In this tutorial, you build a Java app that uses the Microsoft Graph API to access data using app-only authentication.

Open Graph Description: In this tutorial, you build a Java app that uses the Microsoft Graph API to access data using app-only authentication.

Opengraph URL: https://learn.microsoft.com/en-us/graph/tutorials/java-app-only

X: @MicrosoftLearn

direct link

Domain: docs.microsoft.com

color-schemelight dark
twitter:cardsummary_large_image
og:typewebsite
og:image:altMicrosoft Learn
og:imagehttps://learn.microsoft.com/en-us/media/open-graph-image.png
platform_id79ef21b2-d2e6-3d13-abb6-2a1d17b6c0fc
scopegraph
localeen-us
uhfHeaderIdMSDocsHeader-MSGraph
page_typeconceptual
feedback_systemStandard
feedback_product_urlhttps://developer.microsoft.com/graph/support
breadcrumb_path/graph/concepts/breadcrumb/toc.json
authorjasonjoh
ms.authorjasonjoh
ms.suitemicrosoft-graph
ms.subservicenon-product-specific
toc_previewtrue
recommendationsfalse
ms.servicemicrosoft-graph
ms.topichow-to
ms.date2025-06-03T00:00:00Z
ms.localizationprioritymedium
document_id4dcc8eec-39a0-d392-e970-82c2afa27613
document_version_independent_id4dcc8eec-39a0-d392-e970-82c2afa27613
updated_at2025-06-11T19:27:00Z
original_content_git_urlhttps://github.com/microsoftgraph/microsoft-graph-docs/blob/live/concepts/tutorials/java-app-only.md
gitcommithttps://github.com/microsoftgraph/microsoft-graph-docs/blob/6c04d22e01fddbac66d1c35cd6387fda03e6ccb4/concepts/tutorials/java-app-only.md
git_commit_id6c04d22e01fddbac66d1c35cd6387fda03e6ccb4
site_nameDocs
depot_nameMSDN.microsoft-graph-docs
schemaConceptual
toc_rel../toc.json
word_count1507
asset_idtutorials/java-app-only
item_typeContent
source_pathconcepts/tutorials/java-app-only.md
previous_tlsh_hashC6F62DC1A61D1221BE956D1A2C17FB0076F2F48A9C70ABD02626B49657C41E63DB698C97EF5BD78AD33383C712AFAA2C49E2F33A513D73671D1D647880CC0252298C37B3CA
github_feedback_content_git_urlhttps://github.com/microsoftgraph/microsoft-graph-docs-contrib/blob/main/concepts/tutorials/java-app-only.md
markdown_urlhttps://learn.microsoft.com/en-us/graph/tutorials/java-app-only?accept=text/markdown
cmProductshttps://authoring-docs-microsoft.poolparty.biz/devrel/1dd701e0-441f-4b0a-9806-aa47decc4e35
spProductshttps://authoring-docs-microsoft.poolparty.biz/devrel/0a2fc935-5977-4aa6-9f55-0be03bd2acb8

Links:

Skip to main content https://docs.microsoft.com/graph/tutorials/java-app-only#main
Skip to Ask Learn chat experience https://docs.microsoft.com/graph/tutorials/java-app-only
Download Microsoft Edge https://go.microsoft.com/fwlink/p/?LinkID=2092881
More info about Internet Explorer and Microsoft Edge https://learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge
Read in English https://docs.microsoft.com/graph/tutorials/java-app-only
Edit https://github.com/microsoftgraph/microsoft-graph-docs-contrib/blob/main/concepts/tutorials/java-app-only.md
signing inhttps://docs.microsoft.com/graph/tutorials/java-app-only
user (delegated) authentication tutorialhttps://docs.microsoft.com/graph/tutorials/java
List usershttps://docs.microsoft.com/en-us/graph/api/user-list
GitHub repositoryhttps://github.com/microsoftgraph/msgraph-training-java/tree/main/app-auth
Java SE Development Kit (JDK)https://java.com/en/download/faq/develop.xml
Gradlehttps://gradle.org/
Microsoft 365 Developer Programhttps://developer.microsoft.com/microsoft-365/dev-program
FAQhttps://docs.microsoft.com/en-us/office/developer-program/microsoft-365-developer-program-faq#who-qualifies-for-a-microsoft-365-e5-developer-subscription-
sign up for a one-month free trial or purchase a Microsoft 365 planhttps://www.microsoft.com/microsoft-365/try
client credentials flowhttps://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow
Microsoft Entra admin centerhttps://docs.microsoft.com/graph/tutorials/java-app-only#tabpanel_1_aad
PowerShellhttps://docs.microsoft.com/graph/tutorials/java-app-only#tabpanel_1_powershell
Microsoft Entra admin centerhttps://entra.microsoft.com
Install the Microsoft Graph PowerShell SDKhttps://docs.microsoft.com/en-us/powershell/microsoftgraph/installation
client credentials flowhttps://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow
The .default scopehttps://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent#the-default-scope
Azure Identity client library for Javahttps://github.com/Azure/azure-sdk-for-java/tree/master/sdk/identity/azure-identity
Microsoft Graph SDK for Javahttps://github.com/microsoftgraph/msgraph-sdk-java
Add app-only authenticationhttps://docs.microsoft.com/graph/tutorials/java-app-only-authentication
en-ushttps://docs.microsoft.com/graph/tutorials/java-app-only
Your Privacy Choiceshttps://aka.ms/yourcaliforniaprivacychoices
AI Disclaimerhttps://learn.microsoft.com/en-us/principles-for-ai-generated-content
Previous Versionshttps://learn.microsoft.com/en-us/previous-versions/
Bloghttps://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog
Contributehttps://learn.microsoft.com/en-us/contribute
Privacyhttps://go.microsoft.com/fwlink/?LinkId=521839
Consumer Health Privacyhttps://go.microsoft.com/fwlink/?linkid=2259814
Terms of Usehttps://learn.microsoft.com/en-us/legal/termsofuse
Trademarkshttps://www.microsoft.com/legal/intellectualproperty/Trademarks/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.