set domain user to write username to temp file