Open this page in the API Guide

IGroupMembershipProvider.ModifyGroupMembership Method (Guid, ICollection<Guid>, ICollection<Guid>)

Change the group membership of an account.

Namespace:  Dundas.BI.AccountServices.Extensibility
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
void ModifyGroupMembership(
	Guid accountId,
	ICollection<Guid> addToGroupIds,
	ICollection<Guid> removeFromGroupIds
)

Parameters

accountId
Type: System.Guid
The ID of the account to be modified.
addToGroupIds
Type: System.Collections.Generic.ICollection<Guid>
Group IDs which this account to be added to. It can be null if no groups to add to.
removeFromGroupIds
Type: System.Collections.Generic.ICollection<Guid>
Group IDs which this account to be removed from. It can be null if no groups to remove from.
Exceptions
ExceptionCondition
NotSupportedExceptionModify operations are not supported.
See Also