Truenas ZFS Backups

Question about ZFS replication from one truenas to another truenas

We have a truenas server at one location, and this is attached a windows domain, so that we can set folder / file permissions inside the SMB share

We replicate the dataset to another truenas server offsite, using replicate tasks.

Question.

The backup truenas server is not attached to the domain so can not see the domain users and groups.

Does the replication task also copy the folder / files permissions ? So in the event of a failure of the main truenas, it is just a case of joining this main to the domain

If it does not is there another way to have a backup server will all the correct permissions

ZFS replication is a block level transfer of all the data which will include the metadata that holds the permissions.