def uid(username):
  try:
    return int(execute("getent passwd %s" % (username)).split(':')[2])
  except:
    return -1
Tests ``R._granularities with an altered maximum value.
dataset/ETHPy150Open NumentaCorp/agamotto/agamotto/user.py/uid--crossover with--dataset/ETHPy150Open bradmontgomery/django-redis-metrics/redis_metrics/tests/test_models.py/TestR.test__granularities_with_altered_max