I would like to manage permission in the SQL asp.net db instead of in sharepoint.
Currently when I Approve a membership request, the user is added to a sharepoint group. Is there a way I can automatically add them to a role instead when I click approve in the membership request dialogue?
In membershiprequest.cs, I tried to change the code to automatically add the user to the role. It works great with Review Membership Requests unchecked. But isn't so hot when I turn it back on.
Anyway, just wondering if you have any ideas?
//Add the user to the default group
//web.SiteGroups[request.DefaultGroup].AddUser(Utils.EncodeUsername(request.UserName.ToLower(), web.Site), request.UserEmail, request.FirstName + " " + request.LastName, "Self Registration");