Account expiration, locate and copy files linux task

As part of the temporary resource allocation, Mariyam has been appointed to the Nautilus project as a backup developer. To facilitate this, a temporary user account is required for Mariyam. It is advisable to create a user account with a specified expiration date to ensure restricted server access beyond the designated period.

A user profile under the name mariyam has already been established on App Server 2 within the Stratos Datacenter. Adjust the account’s expiration date to 2024-04-15. Additionally, locate all files (excluding directories) owned by this user within the /home/usersdata directory and copy them to the /beta directory while maintaining their original ownership.

my process
[root@stapp02 ~]# chage -E 2024-04-15 mariyam
[root@stapp02 ~]# find /home/usersdata -type f -user mariyam -exec cp --parents {} /beta ;

but task failed

Did you check the result of your commands? The find command needs to be terminated with \; not just ;