Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal for Users: Extend parameter Enabled #62

Open
dbeugger opened this issue Mar 5, 2025 · 0 comments
Open

Proposal for Users: Extend parameter Enabled #62

dbeugger opened this issue Mar 5, 2025 · 0 comments

Comments

@dbeugger
Copy link

dbeugger commented Mar 5, 2025

By default, the value 'Undefined' is used for the Enabled parameter for Users. According to the documentation, a non-existing one is created as enabled.
For security reasons, we would like to create non-existing ones as disabled. But then treat them as undefined. Therefore, we suggest 'CreateDisabled' as an additional value for Enabled.

Example:

@(
    @{
        SamAccountName       = 'musterh'
        GivenName            = 'Muster'
        Surname              = 'Hans'
        Description          = 'Hans Muster'
        UserPrincipalName    = 'musterh@%DomainFqdn%'
        Path                 = '%MyUsersOu%,%DomainDN%'


        Enabled              = 'CreateDisabled'
    }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant