Use this API to fetch dbuser resource of given name .
776185
public static dbuser get(nitro_service service, String username) throws Exception{
		dbuser obj = new dbuser();
		obj.set_username(username);
		dbuser response = (dbuser) obj.get_resource(service);
		return response;
	}
321562
def get_user(self, user_id):
		""""""
		content = self._fetch("/user/%s" % user_id)
		return FastlyUser(self, content)
865779
def get(cls, user_id, db_session=None):
        
        db_session = get_db_session(db_session)
        return db_session.query(cls.model).get(user_id)
249471
public static snmpuser get(nitro_service service, String name) throws Exception{
		snmpuser obj = new snmpuser();
		obj.set_name(name);
		snmpuser response = (snmpuser) obj.get_resource(service);
		return response;
	}
1086942
def get_user(self, key = None):
		'''
		''' 	
		if key:
			uri = self.api_uri + "/users/" + key
		else:
			uri = self.api_uri + "/users/me"

		return self._req('get', uri)
437253
protected CmsUser getUser(CmsUUID userId) {

        CmsDbContext dbc = m_dbContextFactory.getDbContext();
        try {
            return m_driverManager.readUser(dbc, userId);
        } catch (CmsException e) {
            dbc.rollback();
            LOG.error(e.getLocalizedMessage(), e);
        } finally {
            dbc.clear();
        }
        return null;
    }
1160457
public JSONAPIDocument<User> fetchUser(Collection<User.UserField> optionalFields) throws IOException {
    URIBuilder pathBuilder = new URIBuilder()
                    .setPath("current_user")
                    .addParameter("include", "pledges");
    if (optionalFields != null) {
      Set<User.UserField> optionalAndDefaultFields = new HashSet<>(optionalFields);
      optionalAndDefaultFields.addAll(User.UserField.getDefaultFields());
      addFieldsParam(pathBuilder, User.class, optionalAndDefaultFields);
    }

    return converter.readDocument(
      getDataStream(pathBuilder.toString()),
      User.class
    );
  }
217619
public static aaauser[] get(nitro_service service, String username[]) throws Exception{
		if (username !=null && username.length>0) {
			aaauser response[] = new aaauser[username.length];
			aaauser obj[] = new aaauser[username.length];
			for (int i=0;i<username.length;i++) {
				obj[i] = new aaauser();
				obj[i].set_username(username[i]);
				response[i] = (aaauser) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
956562
function (n) {
            //get user from db
            dbAction.get("findByUserId", userId, function (err, u) {
                if (u) {
                    user = u.toObject();
                }
                else {
                    err = err || new Error("User not found by userId: " + userId);
                }
                n(err);
            })
        }
576082
@Programmatic
    public ApplicationUser findByUsernameCached(final String username) {
        return queryResultsCache.execute(new Callable<ApplicationUser>() {
            @Override public ApplicationUser call() throws Exception {
                return findByUsername(username);
            }
        }, ApplicationUserRepository.class, "findByUsernameCached", username);
    }
1267595
def QA_fetch_user(user_cookie, db=DATABASE):
    
    collection = DATABASE.account

    return [res for res in collection.find({'user_cookie': user_cookie}, {"_id": 0})]
668215
public static mpsuser[] get(nitro_service client) throws Exception
	{
		mpsuser resource = new mpsuser();
		resource.validate("get");
		return (mpsuser[]) resource.get_resources(client);
	}
82884
def find_by_user(user: str) -> List['ApiKey']:
        
        return [ApiKey.from_db(key) for key in db.get_keys(qb.from_dict({'user': user}))]
1159843
User getUser(String id, AccessToken accessToken, String... attributes) {
        return getResource(id, accessToken, attributes);
    }
381356
@GetMapping("/user")
  public ResponseEntity<User> getUser(
      @VersionApi int version, //<1>
      @RequestParam("id") String id) {
    throw new UnsupportedOperationException();
  }
481636
public User get(String name) {

        User user = (User) userList.get(name);

        if (user == null) {
            throw Error.error(ErrorCode.X_28501, name);
        }

        return user;
    }
1281955
def by_resource_user_and_perm(
        cls, user_id, perm_name, resource_id, db_session=None
    ):
        
        db_session = get_db_session(db_session)

        query = db_session.query(cls.model).filter(cls.model.user_id == user_id)
        query = query.filter(cls.model.resource_id == resource_id)
        query = query.filter(cls.model.perm_name == perm_name)
        return query.first()