You should now also import Unity.Services.Core.Analytics to be able to set a custom user id.
Unity.Services.Core.Analytics