I have a problem with adding a FBA role to a sharepoint 2013 site programmatically. I tried web.ensureuser method and web.Siteusers.Add() methods and none of them works for me. SPUser spUser = ...
Assign permissions to user defined Roles defined in the database using custom provider in Sharepoint 2010
I use the asp.net membership and role provider as described in the http://msdn.microsoft.com/en-us/library/office/gg252020(v=office.14).aspx It all works fine i am able to see the user "admin1" as ...