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

Set-EntraDirSyncFeature should process multiple features at once #1168

Open
SteveMutungi254 opened this issue Oct 23, 2024 · 1 comment
Open
Labels

Comments

@SteveMutungi254
Copy link
Contributor

Describe the feature
A clear and concise description of this feature. Please describe what the feature does. You’ll be asked why it is important later.

Customer feedback:

It would also be nice if the cmdlet could process multiple features at one time i.e.. accept an array instead of a string for the feature parameter given that there are 19 features that can be activated - Tony Redmond

Set-EntraDirSyncFeature -Feature PasswordSync,PasswordWriteBack,UserWriteBack -Enabled:$true
Set-EntraDirSyncFeature: Cannot process argument transformation on parameter 'Feature'. Cannot convert value to type System.String.

How will this feature enhance your project and further the project’s overall goals? Who will benefit from this feature (i.e. all users; the project team)?
A concise statement about the importance of the feature and the impact it should have on your project.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@12Knocksinna
Copy link

12Knocksinna commented Oct 23, 2024

The Graph SDK cmdlet allows you to modify multiple settings at one time, so the Entra cmdlet should do so too

$SyncId = Get-MgDirectoryOnPremiseSynchronization | Select-Object -ExpandProperty Id
$Features = @{}
$Features.Add("softMatchOnUpnEnabled",$true)
$Features.Add("synchronizeUpnForManagedUsersEnabled",$true)
$Parameters = @{}
$Parameters.Add("features",$Features)
Update-MgDirectoryOnPremiseSynchronization -OnPremisesDirectorySynchronizationId $SyncId -BodyParameter $Parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants