Share via


2.4.1 AccountName

This identity attribute is an XML element whose value is a Security Account Manager (SAM) account name. The account name of an identity object of the person object type corresponds to the value of the samAccountName attribute of a User object class in Active Directory, as defined in [MS-ADA3] section 2.222.

The XML schema of this identity attribute when transferred as an identity attribute value is defined as follows:

 <?xml version="1.0" encoding="utf-8"?>
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:rm="http://schemas.microsoft.com/2006/11/ResourceManagement"
    targetNamespace="http://schemas.microsoft.com/2006/11/ResourceManagement">
   <xs:element name="AccountName">
     <xs:simpleType>
       <xs:restriction base="xs:string">
         <xs:pattern value="^.{1,64}$" />
       </xs:restriction>
     </xs:simpleType>
   </xs:element>
 </xs:schema>

This XML element MUST be provided during a create or a put on a person object and MUST NOT be deleted.