AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDiscussionManager.SubscribeUsers Method

Subscribes users with the given IDs to the given discussion and all discussion posts within that discussion.

void SubscribeUsers(
IDiscussion discussion,
int[] userIDs
);

#### Parameters

discussion
  The discussion to subcribe users to; cannot be `null`.
userIDs
  The IDs of the users to subscribe; cannot be `null`; all IDs must be positive.

#### Remarks

The calling user must have `ADMIN` access to the project containing this discussion, and the users to be subscribed have to have at least READ access to the discussion. The call will make a best attempt to subscribe all valid users supplied. A `MultipleObjectException` will be thrown specifying the IDs that failed to be subscribed.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | The discussion has not yet been stored or has already been removed.
MultipleObjectException | One or more users cannot be subscribed.
CollaborationException | The method call resulted in an error.
ArgumentException | One or more of the user IDs is not > 0.
SoapException | There was a communication problem during the execution of the remote method call.

#### See Also

IDiscussionManager Interface | Plumtree.Remote.PRC.Collaboration.Discussion Namespace