Home > MS SharePoint Sever > Create a Permission Level

Create a Permission Level

Permission levels are created in the browser and are used in both Windows SharePoint Services 3.0 sites and Office SharePoint Server 2007 sites. You cannot create a permission level in Office SharePoint Designer 2007. Also, you must create the permission level first in order for it to appear in the list of available permission levels in Office SharePoint Designer 2007.

Permission levels are managed at the site level. You can perform the following procedure on the top-level Web site of a site collection or on any subsite that is using unique permissions. You cannot manage permissions on a subsite that is inheriting permissions from its parent. Instead, either you must manage permissions of the parent, or you must first stop inheriting permissions from the parent site and then create unique permissions on the subsite.

Managing permissions of a parent site affects not only the parent site, but all subsites inheriting from that parent site. Before you manage permissions of a parent site, carefully consider how your changes will affect other sites.

Find links to more information about permission levels in the See Also section.

  1. Open the SharePoint site in the browser.
  2. On the Site Actions menu, click Site Settings.
  3. On the Site Settings page, under Users and Permissions, click Advanced permissions.
  4. On the Settings menu, click Permission Levels. If the Settings menu is not available, it means that your site inherits permissions from its parent site. You cannot manage permissions on a subsite that is inheriting permissions from its parent. Instead, you must either manage the permissions of the parent, or first stop inheriting permissions from the parent site and then create unique permissions on the subsite. To stop inheriting permissions from the parent site, on the Actions menu, click Edit Permissions. You will receive an alert that you are about to create unique permissions for the site, and that changes to the parent site will not affect your site. Click OK to continue. The Settings menu is now available, where you can click Permission Levels.
  5. On the Permission levels page, on the menu bar, click Add a Permission Level.If you do not see the Add a Permission Level button, it means that your site inherits permissions from its parent site. You cannot manage permissions on a subsite that is inheriting permissions from its parent. Instead, you must either manage the permissions of the parent, or first stop inheriting permissions from the parent site and then create unique permissions on the subsite. To stop inheriting permissions from the parent site, click Edit Permission Levels. You will receive an alert that you are about to create custom permissions, and that changes to the parent site will not affect your site. Click OK to continue. The Add a Permission Level button is now available. Click it.
  6. On the Add a Permission Level page, type a name and description for the new permission level.The name that you type here is the name of the permission level that will appear in Office SharePoint Designer 2007.
  7. Select the permissions that you want this permission level to have.Many permissions are dependent on other permissions. When you select a permission that is dependent on another, the permission on which it is dependent is also automatically selected. Likewise, clearing a permission on which other permissions are dependent also clears the dependent permissions.
  8. Click Create.The new permission level now appears in the Permission Levels list and is available for you to link to a Contributor group in Office SharePoint Designer 2007.
Advertisements
  1. Barry
    August 16, 2007 at 8:10 am

    There is also a less complicated way to manage permission levels. New scriptlogic solution – security explorer for SharePoint looks quite promising. It can show SharePoint sites as a tree and enables you to assign permission levels, manage security permissions and SharePoint groups, perform backups in a visual way.

  2. soni
    June 10, 2009 at 9:22 pm

    Hi,

    I am beginner for sharepoint. I tried to add a role definition in a SubSite and getting the

    Error: Cannot Customise the Permission levels in a web site with inherited permissions level.

    Though I used BreakRoleInheritance() but still my code didnt workout.

    try
    {
    //create the instance of site and web
    SPSite TopLevelSite = new SPSite(txtSiteUrl.Text.Trim());
    SPWeb webInstance = TopLevelSite.AllWebs[txtWebUrl.Text.Trim()];

    //allow all updates
    webInstance.AllowUnsafeUpdates = true;

    webInstance.BreakRoleInheritance(true);
    webInstance.HasUniquePerm = true;
    webInstance.Update();

    //get the role definition of web
    SPRoleDefinitionCollection roleDefinitions = webInstance.RoleDefinitions;

    //create a new instance of roledefinition
    SPRoleDefinition roleDefinition = new SPRoleDefinition();

    //set the parameters for the roledefinition
    roleDefinition.Name = txtRoleDefName.Text.Trim();
    roleDefinition.Description = txtRoleDescription.Text.Trim();

    //set the permission masks
    SPBasePermissions permissionMask = new SPBasePermissions();

    if (chkBoxFullCtrl.Checked)
    {
    permissionMask = webInstance.RoleDefinitions[“Full”].BasePermissions;
    }
    else if (chkBoxContribute.Checked)
    {
    permissionMask = webInstance.RoleDefinitions[“Contribute”].BasePermissions;
    }
    else
    {
    permissionMask = webInstance.RoleDefinitions[“Read”].BasePermissions;
    }

    roleDefinition.BasePermissions = permissionMask;

    //add the role
    roleDefinitions.Add(roleDefinition);

    MessageBox.Show(“Role Added Successfully”);

    //dispose the objects

    webInstance.Dispose();
    TopLevelSite.Dispose();

    }//end of try
    catch (Exception ex)
    {
    MessageBox.Show(“Error in maskig” + ex.Message.ToString());

    }//end of catch

    guidance required.

    Thanks in advance

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: