IGroupServiceModifyGroupMembershipForAccount Method |
Namespace: Dundas.BI.AccountServices
OperationResult ModifyGroupMembershipForAccount( Guid accountId, ICollection<Guid>? addToGroupIds, ICollection<Guid>? removeFromGroupIds )
Exception | Condition |
---|---|
ArgumentException | accountId is Empty. |
NotFoundException | The account with the specified ID does not exist. -or- addToGroupIds or removeFromGroupIds contains the ID of a group which does not exist. |
InvalidOperationException | Attempt to modify the membership of a system-controlled group (see remarks). -or- Same group ID found in both addToGroupIds and removeFromGroupIds. -or- A tenant account is being added as a member of the System Administrators group. |
NotSupportedException | The underlying groups provider does not allow modifications to groups. |
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. -or- The account is associated with a tenant, and an attempt has been made to make it a member of a group which is not associated with that tenant. -or- The caller does not have administration privileges for all the specified groups. |
InvalidSessionException | The caller context is not associated with a valid session. |