Is it possible to have two media entries point to the same under lying media files using the API?

My end goal is to have two entries with two different AccessControl profiles point to the same media. I don’t want to add the media twice since it would double my storage requirements.

I know that when ever you add a partner it adds default videos without requiring full copies of the media. Is it possible for me to do this?

Thanks

Hello,

You can use:
baseEntry->clone($entryId);

That will not copy the actual files but instead, will create symlinks to the original.

I believe this is what you want.