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
organizationIdGuidThe organization.
shortNameOrganizationShortNameThe new short name.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<OrganizationWriteResult>
What the act did.
Exceptions
- ArgumentException
Thrown when
shortNameis the unspecified struct default.- PrincipalNotAuthorizedException
Thrown when the caller does not hold AdminCredentialsWrite.