Get user pk middleware