CreateGroup

Description

Creates a new group and associates it with the schema repository.

The new group is subscribed to all databases by default. When you use the methods of the Group object to add users and subscribe the group to one or more databases, the groups or users are subscribed only to those you specify.

Syntax

VBScript


adminSession.CreateGroup(groupName) 

Perl


$adminSession->CreateGroup(groupName); 
Identifier
Description
adminSession
The AdminSession object representing the current schema repository access session.
groupName
A String containing the name you want to give to the new group.
Return value
A new Group Object.

Examples

VBScript


set adminSession = CreateObject("ClearQuest.AdminSession")
adminSession.Logon "admin", "admin", "" 

set newGroupObj = adminSession.CreateGroup ("Engineers") 

Perl


use CQPerlExt;

#Create an admin session
$adminSession= CQAdminSession::Build();

#Logon as admin
$adminSession->Logon( "admin", "admin", "" );

#Create the group "Engineers" object
$newGroupObj = $adminSession->CreateGroup( "Engineers" );

#...

CQAdminSession::Unbuild($adminSession);