User-1545767719 posted
Get user id in startup
It depends on what you mean by "startup". To get user id the user must visit the site and must be authenticated. If your "startup" is after that it is maybe possible. But if your "startup" means the startup.cs is is impossible.