【发布时间】:2022-01-20 12:31:06
【问题描述】:
我正在尝试从 azure AD 访问基于某些属性(手机)的用户,但出现上述错误 我什至尝试添加 ConcistencyLevel 标头和 count = true 查询参数但没有成功 我的代码如下
try
{
ClientSecretCredential authProvider = new ClientSecretCredential("*******", "********", "*********");
List<Option> options = new List<Option>
{
//new QueryOption("count", "true"),
//new HeaderOption("ConsistencyLevel","eventual")
};
var graphClient = new GraphServiceClient(authProvider);
var user = await graphClient.Users.Request(options).Filter("mobilePhone eq '1111222223333'").GetAsync();
}
catch (Exception ex)
{
}
请告诉我我错过了什么
【问题讨论】:
标签: .net-core azure-active-directory microsoft-graph-api