On LineageOS (and Android in general), you can find the user ID (UID) associated with a specific app using several methods. Here are the most common approaches:
1. Using ADB (Android Debug Bridge)
If you have ADB access (USB debugging enabled on the device), you can use the following command: