Table of Contents

Method ChangeShortNameAsync

Namespace
MailFathom.Application.Access.Organizations
Assembly
MailFathom.Application.dll

ChangeShortNameAsync(Guid, OrganizationShortName, CancellationToken)

Replaces the short name an organization's members sign in under, which moves every one of their logins with it.

public Task<OrganizationWriteResult> ChangeShortNameAsync(Guid organizationId, OrganizationShortName shortName, CancellationToken cancellationToken)

Parameters

organizationId Guid

The organization.

shortName OrganizationShortName

The new short name.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<OrganizationWriteResult>

What the act did.

Exceptions

ArgumentException

Thrown when shortName is the unspecified struct default.

PrincipalNotAuthorizedException

Thrown when the caller does not hold AdminCredentialsWrite.