adapt user id retrieve