def METHOD_NAME(iam_client, groups):
    """
    Returns the group managed policy names of the current user
    Args:
        iam_client (obj): IAM client obj
        groups (list): User groups
    Returns:
        policy_names (list): List of group managed policy names the current user has
    """
    policy_names = []
    for group in groups:
        attached_policies = iam_client.list_attached_group_policies(GroupName=group['GroupName'])['AttachedPolicies']
        policy_names += [policy['PolicyName'] for policy in attached_policies]
    return policy_names