# pinUser()

Pins the tile of a concrete user. You can specify if you want to pin the **media** tile (video/audio) or **screenshare** tile of the user. If tile param is not specified, the default value is **media**.

<pre class="language-javascript"><code class="lang-javascript">//Pins the media tile of the user
<strong>sambaFrame.pinUser('9efc7798-a1a4-44bd-9d8d-532fe0feea9d');
</strong>
//Pins the screenshare tile of the user
sambaFrame.pinUser('9efc7798-a1a4-44bd-9d8d-532fe0feea9d', 'screenshare');
</code></pre>

**Sample use cases**:&#x20;

* Wanting to pin tile or screenshare of a concrete user

{% hint style="info" %}
**pinUser** is often used in conjunction with the [unpinUser](https://docs.digitalsamba.com/reference/sdk/methods/unpinuser) method.
{% endhint %}
