def METHOD_NAME(self, req, args, client):
    # Retrieve user id
    uid = args.usr.lookup(client)
    if uid is None:
        self.ctx.die(196, "Failed to find user: %s" % args.usr.orig)
    # Set requests user
    import omero
    if isinstance(req, omero.cmd.DoAll):
        for request in req.requests:
            if isinstance(request, omero.cmd.SkipHead):
                request.request.userId = uid
            else:
                request.userId = uid
    else:
        if isinstance(req, omero.cmd.SkipHead):
            req.request.userId = uid
        else:
            req.userId = uid
    super(ChownControl, self).METHOD_NAME(req, args, client)