简体   繁体   中英

Get Azure AD user profile from Azure ObjectID

I want to fetch user profile information such as user image, email id, etc in Microsoft Teams. I'm having Azure ObjectID of the user and with that i need to get complete user profile from AAD. I tried to get user profile with graph API by passing access token but its giving me Invalid token error.

Based on the official API reference,

1. to get user profile, you can use Get a user API. And the required permission would be:


在此处输入图像描述

2. to get user image, you may use Get photo API. The required permission would be:

在此处输入图像描述

3. you can add permissions on Azure portal for your app registered

在此处输入图像描述

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