Share via


Group.AddSiteCollectionAccess method

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

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
Public Sub AddSiteCollectionAccess ( _
    siteCollectionId As Guid _
)
'Usage
Dim instance As Group
Dim siteCollectionId As Guid

instance.AddSiteCollectionAccess(siteCollectionId)
public void AddSiteCollectionAccess(
    Guid siteCollectionId
)

Parameters

  • siteCollectionId
    Type: System.Guid

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

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.

Examples

public void AddSiteCollectionAccess(Guid siteCollectionId)

See also

Reference

Group class

Group members

Microsoft.SharePoint.Taxonomy namespace

[M:Microsoft.SharePoint.Taxonomy.TermStore.CommitAll()]

IsSiteCollectionGroup

DeleteSiteCollectionAccess

SiteCollectionAccessIds