You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Community Namespace > Classes > CommunityGroup Class > CommunityGroup Methods > AddUserToCommunityGroup Method > AddUserToCommunityGroup
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
CommunityGroup.AddUserToCommunityGroup Method (Long, Long, Boolean)

Adds a user to a community group. You can override the group enrollment moderation by setting the overridePending parameter to true.

C#
public AddUserToCommunityGroup(Long groupId, Long userId, Boolean overridePending);
Visual Basic
Public Sub AddUserToCommunityGroup(ByVal groupId As Long, ByVal userId As Long, ByVal overridePending As Boolean)
Parameters 
Description 
groupId 
ID of the community group to which the user will be added. 
userId 
ID of the user to be added. 
overridePending 
Set to true if you wish to bypass group enrollment moderation. 
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!