# Run Hidden without Turning Off

**URL:** <https://community.miniprofiler.com/t/run-hidden-without-turning-off/346>\
**Category:** .NET\
**Created:** [December 2, 2014, 9:33pm UTC](https://community.miniprofiler.com/t/run-hidden-without-turning-off/346 "2014-12-02T21:33:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlatourelle](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@tlatourelle](https://community.miniprofiler.com/u/tlatourelle)\
**Post date:** [December 2, 2014, 9:33pm UTC](https://community.miniprofiler.com/t/run-hidden-without-turning-off/346/1 "2014-12-02T21:33:33Z")

</div>

I would like to be able to run MP, but keep it hidden, in order to log a bunch of profiling information from various users, so that we can get a representative sample of usage without being in the users’ faces.

I know about being to start/stop MP based on users and roles, but I was more interested in the heads-up display itself. Can it be hidden without turning off MP?

-T

---

<div class="post-metadata">

**Author:** ![Yaakov\_Ellis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/yaakov_ellis/32/961_2.png) [@Yaakov\_Ellis](https://community.miniprofiler.com/u/Yaakov_Ellis)\
**Post date:** [December 4, 2014, 6:58am UTC](https://community.miniprofiler.com/t/run-hidden-without-turning-off/346/2 "2014-12-04T06:58:42Z")

</div>

As it says on [MiniProfiler.com](http://MiniProfiler.com), you can restrict who will see the UI:

```
protected void Application_Start(object sender, EventArgs e) 
{
   MiniProfiler.Settings.Results_Authorize = IsUserAllowedToSeeMiniProfilerUI;
}
private bool IsUserAllowedToSeeMiniProfilerUI(HttpRequest httpRequest)
{
    // Implement your own logic for who 
    // should be able to access ~/mini-profiler-resources/results
    var principal = httpRequest.RequestContext.HttpContext.User;
    return principal.IsInRole("Developer");   
}

```

If you dont want to show the UI at all - just dont put in the code in your VIew to render the UI. Rendering the UI has nothing to do with storing results.
