简体   繁体   中英

Get information from external microsoft teams user in callrecords from ms graph api

Is it possible to get the email from an external teams call participant?

The data is retrieved from https://graph.microsoft.com/beta/subscriptions

I resolve our ids with the graph user enpoint https://graph.microsoft.com/v1.0/users/{id}

I am writing the callrecords into our ticketing system and would like to display the email from an participant from a different tenant.

[participants] => Array
    (
        [0] => Array
            (
                [acsUser] => 
                [spoolUser] => 
                [phone] => 
                [guest] => 
                [encrypted] => 
                [onPremises] => 
                [acsApplicationInstance] => 
                [spoolApplicationInstance] => 
                [applicationInstance] => 
                [application] => 
                [device] => 
                [user] => Array
                    (
                        [id] => myId
                        [displayName] => Nico Bleiler
                        [tenantId] => myTenant
                    )

            )

        [1] => Array
            (
                [acsUser] => 
                [spoolUser] => 
                [phone] => 
                [guest] => 
                [encrypted] => 
                [onPremises] => 
                [acsApplicationInstance] => 
                [spoolApplicationInstance] => 
                [applicationInstance] => 
                [application] => 
                [device] => 
                [user] => Array
                    (
                        [id] => externalId
                        [displayName] => External User
                        [tenantId] => hisTenant
                    )

            )

    )

As far as i know i can not query a user which is not in my tenantId. But is there a way i could atleast retrieve his email?

You can use list participants to get the list of participants from a given call. Being said that i dont remember there is a way exists at this point to get email address of Microsoft teams user. Being said that i remember two closest uservoice items for uservoice1 , uservoice2 - go ahead, upvote them - so that Microsoft can consider implementing it.

I believe i used the userPrincipalName property to get out emails.

GET /users/{id | userPrincipalName} GET /users/{id | userPrincipalName} which can be found here: https://docs.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http

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