@Jeruel Bautista Thanks for reaching out. If the incoming request is using a subscription key that belongs to a user, APIM will emit userId to Log Analytics. If the subscription key of incoming request is not tied to a user, no user id is emitted. please refer below
do let me know incase of further queries, I would be happy to assist you.