📜  使用电子邮件地址获取广告用户 microsoft graph C# 代码示例

📅  最后修改于: 2022-03-11 14:49:05.600000             🧑  作者: Mango

代码示例1
// Retrieve a user by id
var user  = await graphClient
    .Users["00000000-0000-0000-0000-000000000000"]
    .Request()
    .GetAsync();

// Retrieve a user by userPrincipalName
var user  = await graphClient
    .Users["user@tenant.onmicrosoft.com"]
    .Request()
    .GetAsync();