Gettting active directory username ( sAMAccountName)

New Contributor



Is there any way to get the active directory user name via API using the "aadObjectId" recevied the webhook . We can get the basic details using the API 3/conversations/ as mentioned here . I would like to get the username (sAMAccountName)  associated with  the "aadObjectId".


Thankyou for any help


Jijo John

2 Replies

Hi @jijojohn ,


Not sure if the following is of any use or just the Graph Documentation in general:







In fact my last reply might not be valid if this is On Prem AD, but I will leave it out there in case.