I have a custom object (Team_Assignments__c) with a lookup relation (Team_Member__c) that references the User object. Team_Member__c should be the name of a user. However, my SOQL query for the Team_Member_c returns gibberish (ex: 0051a000000bSMsAAM). I was wondering why this is and how I could fix this?
VF Page:
<apex:pageBlock mode="maindetail">
<apex:pageBlockSection columns="1">
<apex:pageBlockTable value="{!team}" var="user">
<apex:column >
<apex:outputText value="{!user.Team_Member__c}"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
SOQL Statement:
Select Id, Name, Team_Member__c
From Team_Assignment__c]