ILogOnServiceImpersonateAccount Method (Guid) |
Note: This API is now obsolete.
Namespace: Dundas.BI.AccountServices
[EditorBrowsableAttribute(EditorBrowsableState.Never)] [ObsoleteAttribute("Use the overload which accepts a tenant ID")] Session ImpersonateAccount( Guid accountId )
Exception | Condition |
---|---|
ArgumentException | accountId or tenantId is Empty. |
InvalidOperationException | The current session is the result of an impersonation. -or- The caller is attempting to impersonate their own account. |
OperationFailedException | Logging on as the impersonated account failed. |
NotFoundException | The specified account was not found. |
NoPrivilegeException | The caller does not have system administration privileges. -or- The caller is associated with a tenant, but does not have administration privileges for that tenant. -or- The caller is associated with a tenant, the specified account does not belong to that tenant. -or- The specified non-global account is not a member of the specified tenant. |
InvalidSessionException | The caller context is not associated with a valid session. |