Plex Permissions help after CORE -> Scale migration

Hi All,
I recently migrated from TrueNAS Core to TrueNAS Scale. I’m very familiar with Kubernetes as a runtime (I use it at work daily), and I have the app configured and running with 1 mount point.

However, I’m not clear on what permissions I need to set on my internal storage. For instance, I have the following mount point.

/mnt/Movie-Data (Kube Pod) -> /mnt/internal/media/Movies/Movie-Data (ZFS DataSet)

When Plex scans, it attempt to create the directory /mnt/internal/media/Movies/Movie-Data/.grab, and I receive a permission denied.

Feb 24, 2025 13:56:02.830 [140335965715256] ERROR - Couldn't check for the existence of file "/mnt/Movies-Data/.grab": boost::filesystem::status: Permission denied [system:13]: "/mnt/Movies-Data/.grab"

To figure out what user/group IDs I need to set, I temporarily set the permissions to open on the parent directory, then ran the Plex scan.

chmod -R 777 /mnt/internal/media/Movies/Movie-Data

This allowed Plex to create directory.

drwxrwx---   2 root plex           2 Feb 24 14:06 .grab

After the .grab directory was created, I incorrectly assumed my user and group needed to be root:plex given those were the permissions set on the directory .grab. However, performing the following does not give plex permission to read my files.

chown -R root:plex  /mnt/internal/media/Movies/Movie-Data
chmod -R 770 /mnt/internal/media/Movies/Movie-Data

I can’t seem to find what user/group I need to set in any of the documentation. Whenever, I try to stream, I receive these errors in the Plex log, since it’s unable to read the files. .

Feb 25, 2025 10:08:59.334 [140335933664056] ERROR - [Req#c2bf] Couldn't check for the existence of file "/mnt/Movies-Data/${filename}"

Any pointers/help would be greatly appreciated!

I managed to figure this out. I had to apply the user:group of root:plex on the Dataset itself in the UI recursively. Once I set this, I had no problems with Plex. The screen is in DataSets → Media → Permissions (scroll down on the right)