Sep 23 2019 09:23 PM - edited Sep 23 2019 10:56 PM
I can get user's id in messages via API and
I can see email in APP (like in picture)
but email is not included,
and I couldn't find any API to get user's id - email mapping.
does anyone knows how to get user's id - email mapping?
(like users.json in slack)
Sep 24 2019 01:30 AM - edited Sep 24 2019 01:33 AM
Are you looking for the below API ?:
https://graph.microsoft.com/v1.0/users/UserId https://graph.microsoft.com/v1.0/users/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?$select=mail
--or---
https://graph.microsoft.com/v1.0/users/username@domain.com?$select=id
Sep 27 2019 01:08 AM
thank you for your response.
I tried as you said.
what I want exactly is getting 'aadObjectId' of Mentioned user ID
like following
"from": {
"id": "29:*****",
"name": "****",
"aadObjectId": "********-****-****-****-************"
},
...
{
"mentioned": {
"id": "hoge:****",
"name": "****"
},
"text": "<at>****</at>",
"type": "mention"
},
i want to get mentioned email or aadObjectId