The attribute syntax specified to the directory service is invalid.

This post describes how to fix the error: The attribute syntax specified to the directory service is invalid.

Problem

When committing the setting of an Active Directory custom attribute you get the error:

System.DirectoryServices.DirectoryServicesCOMException (0x8007200B): The attribute syntax specified to the directory service is invalid.
at System.DirectoryServices.DirectoryEntry.CommitChanges()

Cause

This error occurs when you try to set a custom attribute to a type that is invalid. For example, if you try to set an integer when the Active Directory schema is configured to accept a string.

This can occur when you use XIA Automation to create or modify accounts with one or more custom attributes in Active Directory:

Screenshot showing error The attribute syntax specified to the directory service is invalid
XIA Automation screenshot showing the error
The attribute syntax specified to the directory service is invalid

Solution

Ensure that the value type that you are trying to set matches what has been configured for that custom attribute in your Active Directory schema.  You can check the type by using the Active Directory Schema MMC snap-in:

Screenshot showing Active Directory schema

Video

Watch a video describing how to fix the error: The attribute syntax specified to the directory service is invalid


Related Posts

- Name translation Could not find the name or insufficient right to see name

Comments

Popular posts from this blog

LG TV This app will now restart to free up more memory

LG TV Clear All Browsing History Data

Excel Import CSV not using "Use First Row as Headers"