First, you need to SSH into your NAS.
When you are in your NAS with the user you want the ID for, just type id and hit Enter.
Now you'll get something like this:
uid=1031(your_nas_user) gid=100(users) groups=100(users), 101(administrators)
From that, you can read your UID is 1031, user group...