How do I get the UserResourceID?
You can add the Resource ID column in the Users view in the ConfigMgr console: