IAccountServiceRemoveAccountFromTenants Method

Removes an account from the specified tenants.

Namespace:  Dundas.BI.AccountServices
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.2.0.1000)
Syntax
IDictionary<Guid, bool> RemoveAccountFromTenants(
	Guid accountId,
	ICollection<Guid> tenantIds
)

Parameters

accountId
Type: SystemGuid
The ID of the account.
tenantIds
Type: System.Collections.GenericICollectionGuid
A collection containing the IDs of all tenants from which the account should be removed.

Return Value

Type: IDictionaryGuid, Boolean
A dictionary representing the result. The keys are tenant IDs. The values are Booleans indicating whether the account was successfully removed from the corresponding tenant. If the account was not originally a member of the tenant, the value of the Boolean will be .
Exceptions
ExceptionCondition
ArgumentException

accountId.

-or-

tenantIds is empty.

-or-

At least one tenant ID is Empty.

NotFoundExceptionThe specified account or at least one of the specified tenants does not exist.
FeatureNotEnabledExceptionThe multi-tenancy features of the application are not enabled.
NotSupportedException The application's custom accounts provider is read-only or doesn't implement IAccountsProvider3.
NoPrivilegeException The caller does not have system administration privileges and is not a tenant administrator for the specified tenants.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also