Open this page in the API Guide

IGroupService.GetMembers Method

Retrieves the members of a group. There is an option indicating whether or not to include the inherited members.

Namespace:  Dundas.BI.AccountServices
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
void GetMembers(
	Guid groupId,
	bool includeInherited,
	out IDictionary<Guid, bool> groupMembers,
	out IDictionary<Guid, bool> accountMembers
)

Parameters

groupId
Type: System.Guid
ID of the group.
includeInherited
Type: System.Boolean
Whether to include the inherited members.
groupMembers
Type: System.Collections.Generic.IDictionary<Guid, Boolean>
When this method returns, contains a dictionary specifying the groups which are members of the specified group. The key is the ID of the group and the value indicates if the group is an explicit member of the specified group (true if it is an explicit member; otherwise, false).
accountMembers
Type: System.Collections.Generic.IDictionary<Guid, Boolean>
When this method returns, contains a dictionary specifying the accounts which are members of the specified group. The key is the ID of the account and the value indicates if the account is an explicit member of the specified group (true if it is an explicit member; otherwise, false).
Exceptions
ExceptionCondition
ArgumentExceptiongroupId is Empty.
NotFoundExceptionThe group with the specified ID does not exist.
InvalidOperationException An attempt was made to get the members of the Everyone group or a built-in seat-specific group.
NoPrivilegeException

The caller does not have system administration privileges.

-or-

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

-or-

The group 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 false, the value of each item in the dictionary will be true.
See Also