How to set Active Directory Required fields when creating groups?

36302256 0 Reputation points
2024-12-15T19:47:15.8566667+00:00

I have a requirement to use certain fields (like company name, department, location) in AD when creating a new account or groups. I want to be able to force the folks who create accounts to enter something in these fields. I need this for account auditing purposes.

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,810 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yanhong Liu 14,000 Reputation points Microsoft Vendor
    2024-12-17T01:05:12.5133333+00:00

    Hello,

    Thank you for posting in Q&A forum.

    Unfortunately, AD by itself does not have a built-in feature to enforce mandatory fields directly. However, you can create a custom solution using PowerShell scripts. You can write a PowerShell script to ensure that the required fields are filled in when creating a user or group, and use this script as part of the standard process. At the same time, ensure that only authorized personnel can execute these scripts, which can effectively ensure data integrity and consistency.

    I hope the information above is helpful.

    Best Regards,

    Yanhong Liu

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

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.