Adds a member to a role.
null
Adding a nonexistent member id will succeed until the role has been updated via the Store method, whereby the role instance will get refreshed.
Note that adding a single user to a role is NOT the same as adding a group with one or more users to a role. The ID of a user who is added with this method can be retrieved using GetMemberIDs with MemberQueryTypes.AllUsers. However, for users belonging to a group that is then added to a role, IDs of individual users in the group will NOT be retrievable using GetMemberIDs with MemberQueryTypes.AllUsers. Instead, MemberQueryTypes.AllGroups should be used to retrieve the group ID.
| Exception Type | Condition |
|---|---|
| ArgumentException | Member ID is not positive |
IRole Interface | Plumtree.Remote.PRC.Collaboration.Security Namespace