如何编写正确的 C# GraphClient 过滤器来检索 ExternalUserState = null 的用户?

How to write correct C# GraphClient filter to retrieve users with ExternalUserState = null?

我无法创建过滤器来获取 ExternalUserState 中为空的用户 属性

我的尝试:

var users = await graphClient.Users.Request()
                            .Filter("ExternalUserState eq null")
                            .Select(u => new {
                                u.Id,
                                u.DisplayName,
                                u.ExternalUserState,
                                u.ExternalUserStateChangeDateTime
                            })
                            .GetAsync();

                            // .Filter("ExternalUserState not in ('PendingAcceptance', 'Accepted')"

两个过滤器 "ExternalUserState eq null" 和(在另一次尝试中)过滤器 "ExternalUserState not in ('PendingAcceptance', 'Accepted' )" 导致 无效的过滤器子句

User.ExternalUserState 属性帮助中提到:

Returned only on $select. Supports $filter (eq, ne, not, in)

知道如何构建有效的过滤器吗?

根据 documentationexternalUserState 不支持过滤 null