Group.AddSiteCollectionAccess(Guid) Method

Definition

Adds a site collection to have access to its local site collection group.

public:
 void AddSiteCollectionAccess(Guid siteCollectionId);
public void AddSiteCollectionAccess (Guid siteCollectionId);
member this.AddSiteCollectionAccess : Guid -> unit
Public Sub AddSiteCollectionAccess (siteCollectionId As Guid)

Parameters

siteCollectionId
Guid

A ID property for the SPSite object that should be given access to the group.

Examples

public void AddSiteCollectionAccess(Guid siteCollectionId)

Remarks

Add a site collection to a group to enable it to access the local group. This method adds the requested site collection to the list that can access the gorup. If the group is not a site collection group, this method has no effect. The user must have ManageTermStore permission to use this method.

Applies to