public interface GroupMemberResources
This interface provides methods to access Share resources.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
List<GroupMember> |
addGroupMembers(long groupId,
List<GroupMember> members)
Add members to a group.
|
void |
deleteGroupMember(long groupId,
long userId)
Remove a member from a group.
|
List<GroupMember> addGroupMembers(long groupId, List<GroupMember> members) throws SmartsheetException
Add members to a group.
It mirrors to the following Smartsheet REST API method:
POST /group/{id}/members
groupId - the ID of the object to add members to.members - the list of members to add. Users that are already members will be ignored.IllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationvoid deleteGroupMember(long groupId,
long userId)
throws SmartsheetException
Remove a member from a group.
It mirrors to the following Smartsheet REST API method:
DELETE /group/{id}/member/{userId}
groupId - the ID of the object to remove the member fromuserId - the ID of the user to remove.IllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationCopyright © 2014–2017 Smartsheet. All rights reserved.