按身份查询用户时是否需要和忽略 Issuer?
Is Issuer both required and ignored when querying users by Identity?
Note: When filtering on the identities property, you must supply both issuer and issuerAssignedId.
但是这个查询:
string email = "me@mydomain.com";
IGraphServiceUsersCollectionPage users = await client.Users.Request()
.Select(x => new { x.Id, x.Mail, x.OtherMails, x.Identities })
.Filter($"identities/any(ids:ids/issuerassignedid eq '{email}' and ids/issuer eq 'x')")
.GetAsync();
Returns一条用户记录:
issuerAssignedId: me@mydomain.com
issuer: mydomain.onmicrosoft.com
问题:为什么 ids/issuer 既需要又被忽略?
我试图在我的设置中重现这个,我也从 SDK 和图形中得到了相同的响应 API。我已经为此提交了一个 Bug,请参考这个 bug link
Note: When filtering on the identities property, you must supply both issuer and issuerAssignedId.
但是这个查询:
string email = "me@mydomain.com";
IGraphServiceUsersCollectionPage users = await client.Users.Request()
.Select(x => new { x.Id, x.Mail, x.OtherMails, x.Identities })
.Filter($"identities/any(ids:ids/issuerassignedid eq '{email}' and ids/issuer eq 'x')")
.GetAsync();
Returns一条用户记录:
issuerAssignedId: me@mydomain.com
issuer: mydomain.onmicrosoft.com
问题:为什么 ids/issuer 既需要又被忽略?
我试图在我的设置中重现这个,我也从 SDK 和图形中得到了相同的响应 API。我已经为此提交了一个 Bug,请参考这个 bug link