author.php get current id of author for advance custom field

i solve this problem by using this code

<?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ?>

<?php the_field('grantor_name', 'user_'.$curauth->ID)

tech