How do I pass the UID in URL to embedded View?
In an embedded view you typically use the "When the filter value is not available" option for the contextual filter to achieve this.

Select "provide default value" then choose "raw value from URL" and set the path component to be 1.

You should also set validation criteria and select what should happen when the value is missing or incorrect.