We have some linked user accounts. When the user logs in with the secondary account, the user ID showing in the log is from the Primary user account.
This is the expected behavior as of the current design. We only show the primary user ID in the tenant logs. If you want to see the ID of the logged-in user, please communicate directly to our product team using our feedback page and click on the Vote button.