在 SharePoint 2013 中将 FBA 角色映射到 SharePoint 组 [英] Mapping FBA Roles to SharePoint Groups in SharePoint 2013

查看:51
本文介绍了在 SharePoint 2013 中将 FBA 角色映射到 SharePoint 组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 SP2013 中设置了成员资格和角色提供者以及 FBA 的自定义登录页面.我可以作为基于 FBA 的用户之一登录,因此我知道与数据库的连接有效.但是,我真的很难将基于 FBA 的角色合并到 SharePoint 中.例如,如何将FBARole1"映射到我网站的 SharePoint所有者"组,以便我放入FBARole1"的任何人都将自动成为该网站的所有者?

I've already set up Membership and Role Providers in SP2013 and a custom login page for FBA. I can login as one of my FBA-based users, so I know the connection to the database works. However, I'm really struggling trying to incorporate my FBA-based roles into SharePoint. How do I map "FBARole1", for example, to the SharePoint "Owners" group for my site, such that anyone I put into "FBARole1" will automatically be an owner of the site?

我进入站点设置-->站点权限.我点击授予权限".它要求我输入姓名、电子邮件地址或所有人".没有提到角色.我输入了我的任何角色名称,但它无法解析.它可以找到我的 FBA 用户,而不是我的 FBA 角色.我想不出 SP 的任何其他地方可以做到这一点.

I go into Site Settings-->Site Permissions. I click on "Grant Permissions". It asks me to enter names, email addresses, or "Everyone". Makes no mention of roles. I enter any of my role names and it won't resolve it. It can find my FBA users, just not my FBA roles. I can't think of any other place in SP to do this.

我已验证我的角色提供程序管道"工作正常.我有一个 Web 部件,用于检查登录用户的角色,并且可以很好地找到它们.所以,我只能说,我只是想念这个关联在 UI 中的哪个位置.

I've verified that my role provider "plumbing" works. I have a web part that checks roles for the logged in user, and it's finding them just fine. So, best I can tell, I'm just missing where in the UI this association gets made.

同样,这是 2013 年.任何帮助将不胜感激.谢谢!

Again, this is 2013. Any help would be appreciated. Thanks!

推荐答案

嗯,我不确定我是否明白,这并没有给我温暖的模糊",但这是我所知道的......

Well, I'm not sure I get it, and this doesn't give me the "warm fuzzies", but here's what I know...

我回到那个对话框输入用户名、电子邮件地址或所有人".我找到了一个链接,建议为我的角色提供者输入完整"信息,而不仅仅是名称,所以我尝试了它.我以{Role provider name}:{role name} 的格式输入.瞧,终于解决了.

I went back to that dialog box to enter usernames, email addresses, or 'Everyone'. I found a link that recommended entering the "complete" info for my role provider instead of just the name, so I tried it. I entered it in the format of {Role provider name}:{role name}. Lo and behold, it finally resolved.

这件事有些奇怪.1. 从那时起,我就可以输入{角色名称},跳过角色提供者的名称和冒号,它就解决了.事先没有.2. 如果我输入整个 {role name},它现在会在搜索中找到它.以前,它没有.而且,如果我按下退格键,所以它不是整个{角色名称},搜索将找不到它.所以,如果我的完整角色名称是FBARole1",它就会解决.如果我输入FBARole",它会说没有匹配项.

A few things are weird about this. 1. From that point on, I have been able to enter the {role name}, skipping the name of the role provider and the colon, and it resolves. It didn't beforehand. 2. If I enter the entire {role name}, it now finds it in search. Before, it didn't. And, if I hit the backspace key so it's not the ENTIRE {role name}, the search won't find it. So, if my full role name was "FBARole1", it'll resolve. If I enter "FBARole", it'll say there are no matches.

很奇怪,但我猜是 SharePoint 2013!

Weird, but that's SharePoint 2013, I guess!

这篇关于在 SharePoint 2013 中将 FBA 角色映射到 SharePoint 组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆