Thursday, May 03, 2012 7:16 AM
HiI have created a group & assigned to a role (Code as given Below)
It is not showing in SiteAction=>SiteSetting=>
But it is showing in SiteAction=>SiteSetting=>
What should I do to appear that in SitePermission?
I am using FBA.
web.AllowUnsafeUpdates = true;
//Create a Groups
SPGroupCollection collGroups = web.SiteGroups;
SPUser ownr = web.Author;
SPUser usr = web.CurrentUser;
Attendees", usr, ownr, "Group of Meeting Participant");
SPRoleAssignment roleAssignment = new SPRoleAssignment(web.
web.AllowUnsafeUpdates = false;
S H A J A N
Friday, May 04, 2012 8:04 PM
1. Are you seeing any errors from 2nd part of your code, where you assign SPRoleAssignment to Meeting_Attendees group? ULS log, exceptions?
2. Is your web = RootWeb? make sure you are referencing to the root web if your site inherits the permission level.
Hope it helps
Please mark as Answered if it helped you
James Tsai | SharePoint Consultant | MCPD,MCTS | www.jamestsai.net
- Marked As Answer by synthasis_shajan Saturday, May 05, 2012 4:51 AM