Synology: Find UID (userID) and GID (groupID) in 5 Seconds

Synology Find UID (userID) and GID (groupID) in 5 Seconds

Do you remember my article where I explained how to find your NAS user ID (PUID) and group ID (PGID)? In said article, you needed to use some terminal commands to find these values. Many of you have asked me if there is a method to find these values without having to use the terminal. In today’s article I will explain how to discover what are your NAS user ID (PUID) and group ID (PGID) without the need to use the terminal. And it will only take you 5 seconds :-).

šŸ’”Note: Check out my new guide on how to Find UID and GID on Your UGREEN NAS.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Make sure you have enabled Email Notifications in your NAS.

  • STEP 3

Go toĀ Control PanelĀ /Ā Task SchedulerĀ /Ā CreateĀ /Ā Scheduled TaskĀ /Ā User-defined script. Follow the instructions in the image below.

Find PUID PGID Synology NAS Set up 1 new 2024

  • STEP 4

Once you click on User-defined script a new window will open. Follow the instructions below:

  1. General: In the Task field type in ā€œMy UID and GIDā€œ. Uncheck the ā€œEnabledā€ option and select your current NAS user from the drop-down menu.
  2. Schedule: SelectĀ Run on the following dateĀ then select ā€œDo not repeatā€œ.
  3. Task Settings: Check ā€œSend run details by emailā€œ, add your email then copy paste the code below in the Run command area. After that clickĀ OK.
id

Find PUID PGID Synology NAS Set up 2 new 2023

Note: Be careful enter only lowercase, not uppercase letters. id not ID.
Note: You can also use the command id user instead of id to discover user PGID and PUID that are not in the admin group.

  • STEP 5

After you click OK onĀ STEP 4, select your ā€œMy UID and GIDā€ Task then click the ā€œRunā€ tab. You will be asked to run My UID and GID ā€“ click OK. Follow the instructions in the image below.

Find PUID PGID Synology NAS Set up 3 new 2024

  • STEP 6

If you have correctly followed all the steps described above, you will receive an email with the user id and group id values.

PGID PUID Synology email final STEP

Note: Remember to add your email address at STEP 4.
Note: In the Task field at STEP 4 type in id and remember to use only lower case letter not upper case.
Note: This information is useful and you may need it, for example, when using certain Docker containers.Ā PUIDĀ values andĀ PGIDĀ values are sometimes requested as Environment Variables for different Docker containers.
Note: These values often dictate the user/group that the Docker container will be running as. So if the Docker container accesses a specific drive share, with specific permissions, then theĀ PUIDĀ andĀ PGID values will specify the user/group that will be used by the Docker container.
Note: You can save and run this task whenever you need it.

This post was updated on Thursday / October 10th, 2024 at 10:42 PM