apply retry logic to get an user type using gum api.