简体   繁体   中英

how i can get Object Id from Azure using Java API or other languages?

在此处输入图像描述 i want to get this Microsoft Azure User Object Id from my Java Program which runs in my local server

i read the document about Azure usage, but not solve my problem

how i can get Object Id from Azure using Java API or other languages?

After reproducing from my end, I could able to make this work using PowerShell. Below is the script that worked for me.

$ObjectId = Get-AzureADApplication -Filter "DisplayName eq '<YourDisplayName>'"
$ObjectId.ObjectId

NOTE: Make sure you use Connect-AzureAD before running the script

RESULTS:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM