Smartsheet.Api.Internal.GroupResourcesImpl.RemoveGroupMember C# (CSharp) Method

RemoveGroupMember() public method

Removes a member from a Group.

This operation is only available to group administrators and system administrators.

This operation is asynchronous, meaning group members may retain their sharing access for a brief period of time after the call returns. For small groups with limited sharing, the operation should complete quickly (within a few seconds). For large groups with many shares, this operation could possibly take more than a minute to complete.

It mirrors To the following Smartsheet REST API method: DELETE /groups/{groupId}/members/{userId}

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public RemoveGroupMember ( long groupId, long userId ) : void
groupId long the Id of the group
userId long the Id of the user
return void
        public virtual void RemoveGroupMember(long groupId, long userId)
        {
            this.DeleteResource<GroupMember>("groups/" + groupId + "/members/" + userId, typeof(GroupMember));
        }