IGroupServiceModifyGroupMembershipForGroup Method |
Namespace: Dundas.BI.AccountServices
void ModifyGroupMembershipForGroup( Guid groupId, ICollection<Guid> accountsToAddIds, ICollection<Guid> accountsToRemoveIds, ICollection<Guid> groupsToAddIds, ICollection<Guid> groupsToRemoveIds )
| Exception | Condition |
|---|---|
| ArgumentException | groupId is Empty. |
| NotFoundException | The group with the specified ID does not exist. -or- accountsToAddIds, groupsToAddIds or groupsToRemoveIds contains the ID of an account or group which does not exist. |
| InvalidOperationException | Attempt to modify the membership of a system-controlled group (see remarks). -or- Same account ID found in both accountsToAddIds and accountsToRemoveIds. -or- Same group ID found in both groupsToAddIds and groupsToRemoveIds. -or- groupsToAddIds contains groupId or the ID of a group which is an explicit or inherited parent of groupId and causes a circular group membership. -or- A tenant account or group 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 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. -or- The group is associated with a tenant, and an attempt has been made to add a member which is not associated with that tenant. |
| InvalidSessionException | The caller context is not associated with a valid session. |