views:

334

answers:

2

Hi All, I'm running an FBA web app, having 2 Site collections. Currently I have a SharePoint group in one site collection, and I would like to assign permission to that group in the other site collection. Since SharePoint groups are site scoped, I thought using FBA roles..

Any words on how to do this, or if this it the recommended way?

Thanks.

A: 

Even if you use FBA, the groups will still be site scoped. You will need to create the groups you want to use on both site collections and deal with the permissions on each site collection unfortunately.

Hugo Migneron
I think you misunderstood me..I know the groups are site scoped, even with FBA.That's why I asked about using FBA Roles instead.
itaysk
I did miunderstand you sorry. You could use FBA roles and it would work, but you would lose all the built-in functionality of the SharePoint groups (for example, you couldn't manage permissions for a list via the UI, you couldn't add a user to a group via site settings, etc.)
Hugo Migneron
That is not true. When properly configured, FBA roles can be added into a SharePoint group through the UI just like an AD user, AD group, or FBA user.
Rich Bennema
+1  A: 

I am a fan of AD groups or FBA roles inside of SharePoint groups regardless of the number of site collections or authentication method. It is just cleaner and cuts down the amount of maintenance for the site going forward.

Once you have an FBA MembershipProvider working (whether AspNetSqlMembershipProvider or custom), the hard part is done. Adding role support is easy by contrast.

There are many examples of getting roles to work: here, here, here, here, and here.

The point I would emphasize is in addition to registering your RoleProvider in the web.config under configuration/system.web/roleManager/providers, be sure to also add it to configuration/SharePoint/PeoplePickerWildcards:

<PeoplePickerWildcards>
  <clear />
  <add key="MyMembershipProvider" value="%" />
  <add key="MyRoleProvider" value="%" />
</PeoplePickerWildcards>

The entries in this section are what SharePoint will use to verify the FBA role when you add it into a SharePoint group.

Rich Bennema
So far it seems like what I wasa looking for. Thanks :)
itaysk