function user-in-groups --argument user
    if empty "$user"
        usage user-in-groups '<user>'
        return (false)
    end

    aws iam list-groups-for-user --user-name "$user" ^ /dev/null | jq --raw-output .Groups[].GroupName
end

Add function to find groups a user is in
Add function to find groups a user is in

colstrom/piranha,colstrom/shellops-aws