IAzureCosmosDbDisableCompanyTwoFactorAuthentication Method

Disable the company's two-factor authentication. All accounts in the company will no longer be required to use two-factor authentication.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task DisableCompanyTwoFactorAuthentication(
	CompanyDto company,
	UserSessionData disableBy,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
Company to disable two-factor authentication
disableBy  UserSessionData
User disabling two-factor authentication
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Task completion

Exceptions

UnauthorizedAccessExceptionThrown if the user disableBy did not have the correct permissions
ArgumentNullExceptionThrown if company or disableBy was

See Also