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

IUserService

public interface IUserService
Represents the user API service.
void AddToGroup(int userArtifactID, int groupArtifactID)

Adds the [User](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.User.html) to the group.

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

void Delete(int artifactID)

Deletes the [User](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.User.html) by ArtifactID.

bool ExistsByEmail(string email)

Determines whether the [User](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.User.html) with the specified email address exists.

User Get(int artifactID)

Gets the [User](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.User.html) by ArtifactID.

User GetByEmail(string email)

Gets the [User](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.User.html) by the specified email address.

IList<NamedArtifact> GetGroups(int userArtifactID)

Gets the list of Groups as NamedArtifact assigned to the specified User.

void RemoveFromGroup(int userArtifactID, int groupArtifactID)

Removes the [User](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.User.html) from the group.

User Require(User user, bool ensureNew = true)

Requires the specified [User](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.User.html). Returns existing [User](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.User.html) if the user has the properties (ArtifactID, Email) set to be able to get the user; otherwise creates a new user.

void Update(User user)

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