Azure B2C检查用户是否存在? [英] Azure B2C check user exist or not?
本文介绍了Azure B2C检查用户是否存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Azure B2C,后跟文章
I am using Azure B2C, followed by the article
用户添加成功.但是问题在于,当我创建新用户时,如何使用用户名检查用户是否存在?
User is added successfully. But the issue is how to check the user exist or not with a user name, when I creating a new user?
推荐答案
您可以使用 signInNames
过滤器按用户的电子邮件地址或用户名查找用户.
You can find users by their email address or their user name using the signInNames
filter.
对于电子邮件地址:
`GET https://graph.windows.net/myorganization/users?$filter=signInNames/any(x:x/value eq 'someone@somewhere.com')&api-version=1.6`
对于用户名:
`https://graph.windows.net/myorganization/users?$filter=signInNames/any(x:x/value eq 'someone')&api-version=1.6`
这篇关于Azure B2C检查用户是否存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文