You confuse Create extensionProperty and Create open extension.
extension_{b2cextensionappid}_IsDemoAccount
is actually extensionProperty
rather than open extension
.
So you should use the following code to filter users.
var users = await graphClient.Users
.Request()
.Filter($"extension_{b2cextensionappid}_IsDemoAccount eq true")
.GetAsync();
Please note the extension property should be extension_**_**
rather than extensions_**_**
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…