IGroupServiceGetGroupMembershipForAccount Method

Retrieves the groups to which the specified account belongs.

Namespace:  Dundas.BI.AccountServices
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
IDictionary<Guid, bool> GetGroupMembershipForAccount(
	Guid accountId,
	bool includeInherited
)

Parameters

accountId
Type: SystemGuid
ID of account.
includeInherited
Type: SystemBoolean
If set to , include the groups which indirectly contain the specified account due to that account's membership in another group.

Return Value

Type: IDictionaryGuid, Boolean
A dictionary where the key is the ID of the group containing the account. The value is if the specified account is an explicit member of the group; otherwise, .
Exceptions
ExceptionCondition
ArgumentExceptionaccountId is Empty.
NotFoundExceptionThe account with the specified ID does not exist.
NoPrivilegeException

The caller does not have system administration privileges.

-or-

The account is associated with a tenant, and the caller does not have administration privileges for that tenant.

InvalidSessionExceptionThe caller context is not associated with a valid session.
Remarks
If includeInherited is , the value of each item in the dictionary will be .
See Also