# לא ניתן להדביק קישור YouTube אם המשתמש אינו חלק מ-"Embedded media post allowed groups"

**URL:** https://meta.discourse.org/t/youtube-link-cannot-be-pasted-if-user-is-not-part-of-embedded-media-post-allowed-groups/369494
**Category:** Bug
**Tags:** onebox, embedding
**Created:** [10 ביוני,‏ 2025,‏ 1:11am UTC](https://meta.discourse.org/t/youtube-link-cannot-be-pasted-if-user-is-not-part-of-embedded-media-post-allowed-groups/369494 "2025-06-10T01:11:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![unknown\_error](https://avatars.discourse-cdn.com/v4/letter/u/df705f/32.png) [@unknown\_error](https://meta.discourse.org/u/unknown_error)
#### Post date: [10 ביוני,‏ 2025,‏ 1:11am UTC](https://meta.discourse.org/t/youtube-link-cannot-be-pasted-if-user-is-not-part-of-embedded-media-post-allowed-groups/369494/1 "2025-06-10T01:11:56Z")

</div>

**Priority/Severity** : Medium (annoying but has workarounds)

**Platform** : Any

**Description** : When a user is **not** a part of the “[Embedded media post allowed groups](https://yt-preview-test.discourse.group/admin/site_settings/category/trust?filter=Embedded%20media%20post%20allowed%20groups)” setting, they cannot upload any media. That is to be expected.

However, if they try to post any YouTube URL (like [https://www.youtube.com/watch?v=L3Dp4oGkn3k](https://www.youtube.com/watch?v=L3Dp4oGkn3k)), this also breaks the Onebox preview functionality (maybe it’s trying to cook the preview image into a local copy; not sure?), resulting in the error message: “An error occurred: Sorry, you can’t embed media items in a post.” every time.

 ![YouTube preview test - General - yt-preview-test — Private Browsing - June 09 @ 06-10-19 PM](https://global.discourse-cdn.com/meta/original/4X/d/7/e/d7e3c5d7b634a7b9d181e4e21c8e2d73a7e5c5d0.jpeg)

**Reproducible steps** :

1. Create a new free trial account on hosted Discourse
2. Remove all non-admin users from [Embedded media post allowed groups](https://yt-preview-test.discourse.group/admin/site_settings/category/trust?filter=Embedded%20media%20post%20allowed%20groups)
3. Create a new user and authorize/approve them
4. Log in as that user and try to paste a YouTube link
5. You should see the error `"An error occurred: Sorry, you can't embed media items in a post."`

This seems to happen regardless of the “Download remote images to local” and other embed/upload-related settings.
