<PackageReference Include="Relativity.Server.Testing.Framework.Api.SDK" Version="10.3.0" />

IGroupService

public interface IGroupService
Represents the group API service.
Group Create(Group entity)

Creates the specified [Group](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Group.html).

void Delete(int id)

Deletes the group by ID.

Group Get(int id, bool includeMetadata = false, bool includeActions = false)

Gets the group by the specified ID.

Group Get(string name)

Gets the group by the specified group name.

Gets all groups by the specified names.

Requires the specified group. If [ArtifactID](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Artifact.html#Relativity_Testing_Framework_Models_Artifact_ArtifactID) property of entity has positive value, gets entity by ID and updates it.If [Name](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.NamedArtifact.html#Relativity_Testing_Framework_Models_NamedArtifact_Name) property of entity have a value, gets entity by name and updates it if it exists.Otherwise creates a new entity using ICreateWorkspaceEntityStrategy<T>.

Group Update(Group entity)

Updates the specified group.