updateUsersToChannel
Update users' affiliation in a channel.
This method allows you to update the affiliation type of users within the specified channel. It modifies the users' affiliation type to the specified ChannelUserAffiliationType and returns:
A list of users whose affiliation was successfully updated.
A list of contact IDs that failed to be updated.
The ChannelUserAffiliationType enum defines the possible affiliation types for users:
ChannelUserAffiliationType.OWNER for users with owner privileges.
ChannelUserAffiliationType.PUBLISHER for users with publisher privileges.
ChannelUserAffiliationType.MEMBER for regular users with member privileges.
ChannelUserAffiliationType.NONE for removing an affiliation, which is equivalent to calling deleteUsersFromChannel method.
Return
A RainbowResult containing a pair of lists:
A list of ChannelUser objects representing the users whose affiliation was successfully updated.
A list of String containing the contact IDs that failed to be updated.
Parameters
The Channel object where the user's affiliation is being updated.
The ChannelUserAffiliationType that specifies the new affiliation type for the users (e.g., OWNER, PUBLISHER, MEMBER, or NONE).
A list of contact IDs representing the users whose affiliation is being updated.
Update users' affiliation in a channel.
This method allows you to update the affiliation type of users within the specified channel. It modifies the users' affiliation type to the specified ChannelUserAffiliationType and returns:
A list of users whose affiliation was successfully updated.
A list of contact IDs that failed to be updated.
The ChannelUserAffiliationType enum defines the possible affiliation types for users:
ChannelUserAffiliationType.OWNER for users with owner privileges.
ChannelUserAffiliationType.PUBLISHER for users with publisher privileges.
ChannelUserAffiliationType.MEMBER for regular users with member privileges.
ChannelUserAffiliationType.NONE for removing an affiliation, which is equivalent to calling deleteUsersFromChannel method.
Return
A RainbowResult containing a pair of lists:
A list of ChannelUser objects representing the users whose affiliation was successfully updated.
A list of String containing the contact IDs that failed to be updated.
Parameters
The Channel object where the user's affiliation is being updated.
The ChannelUserAffiliationType that specifies the new affiliation type for the users (e.g., OWNER, PUBLISHER, MEMBER, or NONE).
A list of IRainbowContact objects representing the users whose affiliation is being updated.