/// <summary> /// Gets a collection that contains the object IDs of the groups of which the /// user is a member. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='objectId'> /// The object ID of the user for which to get group membership. /// </param> /// <param name='parameters'> /// User filtering parameters. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IEnumerable <string> > GetMemberGroupsAsync(this IUsersOperations operations, string objectId, UserGetMemberGroupsParametersInner parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetMemberGroupsWithHttpMessagesAsync(objectId, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }