title: What is the difference between uid and sAMAccountName
body: <p>What is the difference between <a href="https://msdn.microsoft.com/en-us/library/ms680508(v=vs.85).aspx" rel="noreferrer">uid</a> and <a href="https://msdn.microsoft.com/en-us/library/ms679635(v=vs.85).aspx" rel="noreferrer">sAMAccountName</a> attributes of a Microsoft Active Directory.</p>
  
  <p>Edit : I am aware of the fact that <code>sAMAccountName</code> is a mandatory field and <code>uid</code> is not. Can someone explain how they differ from each other in terms of usage</p>