ActiveDirectoryManagementFramework / DomainManagement

PowerShell module to manage domain level Active Directory resources
MIT License
7 stars 3 forks source link

User - Allow empty strings on Register-DMUser #85

Open AndiBellstedt opened 6 months ago

AndiBellstedt commented 6 months ago

Due to UserPrincipalName is allowed to be empty in AD (and it is on default objects like "guest" and "krbtgt"), that parameter UserPrincipalName should be allowed to be empty.

validator may be enough on the parameter:

[AllowEmptyString()]
AndiBellstedt commented 6 months ago

Suggestion in in my fork