Custom attribute not show in ADUC and PowerShell

adam900331 366 Reputation points
2022-06-14T08:01:54.227+00:00

Hy!

I created an custom attribute following this article:
https://www.rebeladmin.com/2017/11/step-step-guide-create-custom-active-directory-attributes/

The attribute name is tesztAttr2.

After I created it, the custom attribute is not show in ADUC in users attribute editor tab, and not show in PowerShell.

Why doesn't show in ADUC? Can I wait some minutes to appear? Can I restart some services or server?

I have only one DC.

Thanks.

Windows for business Windows Client for IT Pros Directory services Active Directory
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Gary Reynolds 9,621 Reputation points
    2022-06-14T09:06:27.567+00:00

    Hi @adam900331

    Schema updates are permanent, so proceed with caution, there is no undo option.

    I think the first thing to do is check that the attribute has been added to the schema. The simplest option is to use NetTools, available here, you can also complete these steps manually with LDP or ADSIEdit, but I haven't provided the steps for these tools, but you should be able to use this guide as a basis for these tools.

    Run NetTools on a domain joined machine, it doesn't need to be the DC.

    Select the Schema Class Browser, under Schema in the left hand pane

    211217-image.png

    Click on the Refresh button and select ** All Attributes

    211197-image.png

    Check to see if your custom attribute is listed, if so, right click on it and Select Where Used from the context menu.
    If your new custom attribute is not listed, then the attribute has not been added to the schema. There is a cache refresh interval but this is only a few minutes. You can use either the LDF file example shown here or use the schema management console to manually refresh the cache.

    211180-image.png

    The dialog will confirm if the attribute has been assigned to any classes, if not, you will need to update the class to include the new attribute.

    211251-image.png

    You can search the list of classes for the class name where the attribute is assigned and by clicking on that class the list of attributes for the class will be displayed, this will confirm that the attribute is assigned to the class.

    211238-image.png

    If you find your custom attribute in the list and right on the attribute and select Schema Definition from the context menu.

    Check the value of the ShowInAdvancedViewOnly, if this is set to True, then you will need to enable the Advanced View in ADUC to see the attribute.

    211218-image.png

    In the Attribute Editor page in ADUC, make sure you have the Show only attributes that have values unselected.

    211246-image.png

    0 comments No comments

  2. adam900331 366 Reputation points
    2022-06-14T13:52:41.597+00:00

    Hy!

    The resolution: You have to restart the Active Directory Domain Service, close the ADUC and re-open the ADUC to show the new custom attribute is users Attribute Editor tab.

    You have to open the PowerShell with administrator to list the custom attribute value.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.