在SharePoint 2013中添加用户/组:用户不存在或不是唯一的:请求位于Web上下文中,我们找不到用户,所以我们失败了. [英] Adding Users/Groups in SharePoint 2013 : The user does not exist or is not unique : Request is in a web context and we can't find the user so we are failing.
问题描述
大家好,
我正面临一个问题,希望我能在这里找到一些解决此问题的线索.
I am facing an issue and hope i get some clue here to resolve this issue.
SharePoint 2013
我将重写MembershipUserCollection FindUserByEmail方法,在此内部,我将进行外部Web服务调用以取回一些数据.然后我在建造 使用 UserName 从该数据中 MembershipUser 对象 和 ProviderKey ,它们是我从数据库中获得的,并最终返回了 MembershipUserCollection.
I am overriding the MembershipUserCollection FindUserByEmail method, and inside this i am making an external web service call to retrieve some data back . Then i am building MembershipUser object from that data using UserName and ProviderKey that i get from database and finally returning a MembershipUserCollection .
现在,当我进入网站设置"->人与团体->添加用户/组.我可以看到数据显示在自动建议"框中.选择任何一个并点击共享"后,选项.我收到以下错误.
用户不存在或不是唯一的用户: 请求位于网络环境中,我们可以找不到用户,因此我们失败了.
The user does not exist or is not unique : Request is in a web context and we can't find the user so we are failing.
这是代码
谢谢
ADIL
推荐答案
您是否在SharePoint 2013中使用了FBA?
Did you use FBA in your SharePoint 2013?
以下是有关如何为SharePoint 2013创建新的自定义成员资格提供程序的博客,供您参考:
Here is a blog about how to create a New Custom Membership Provider for SharePoint 2013 for your reference:
http://nikcharlebois.com/create-a-new- custom-membership-provider-for-sharepoint-2013/
最好的问候,
这篇关于在SharePoint 2013中添加用户/组:用户不存在或不是唯一的:请求位于Web上下文中,我们找不到用户,所以我们失败了.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!