Click or drag to resize

RepositoryUpdateGroup Method (Group, Options)

Update the record for a group in the repository

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.255.3501
Syntax
public Group UpdateGroup(
	Group group,
	Options options
)

Parameters

group
Type: Perforce.P4Group
Group specification for the group being updated
options
Type: Perforce.P4Options
optional flags

Return Value

Type: Group
The Group object if new group was saved, null if creation failed
Examples
To add the user 'Carol' to the group 'Mygroup':
string targetGroup = "Mygroup";
Group group = GetGroup(targetGroup, null);
group.UserNames.Add("Carol");
_repository.UpdateGroup(group);
See Also