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

Drawing attention to -ADObjectDN parameter. #67509

Merged
merged 1 commit into from
Jan 15, 2021
Merged

Drawing attention to -ADObjectDN parameter. #67509

merged 1 commit into from
Jan 15, 2021

Conversation

JeremyTBradshaw
Copy link
Contributor

I noticed in AdSyncConfig.psm1, the comment-based help for the Set-ADSyncUnifiedGroupWritebackpermissions function doesn't include a .Parameter keyword for -ADObjectDN parameter, however, the parameter is there:

        # DistinguishedName of the target AD object to set permissions (optional)
        [string] $ADobjectDN = $null,

And the description also covers it:

 .DESCRIPTION
        The Set-ADSyncUnifiedGroupWritebackPermissions Function will give required permissions to the AD synchronization account, which include the following:
        1. Generic Read/Write, Delete, Delete Tree and Create\Delete Child for Group Object types and SubObjects

        These permissions are applied to all domains in the forest.
        Optionally you can provide a DistinguishedName in ADobjectDN parameter to set these permissions on that AD Object only (including inheritance to sub objects).
        In this case, ADobjectDN will be the Distinguished Name of the Container that you desire to link with the GroupWriteback feature.

...and also one of the examples covers it:

.EXAMPLE
       Set-ADSyncUnifiedGroupWritebackPermissions -ADConnectorAccountName 'ADConnector' -ADConnectorAccountDomain 'Contoso.com' -ADobjectDN 'OU=AzureAD,DC=Contoso,DC=com'

It is a good idea to use it, vs granting permissions all through the entire forest which won't be necessary (only the chosen OU needs the permissions set).

I noticed in AdSyncConfig.psm1, the comment-based help for the `Set-ADSyncUnifiedGroupWritebackpermissions` function doesn't include a .Parameter keyword for `-ADObjectDN` parameter, however, the parameter is there:

```powershell
        # DistinguishedName of the target AD object to set permissions (optional)
        [string] $ADobjectDN = $null,
```
And the description also covers it:
```powershell
 .DESCRIPTION
        The Set-ADSyncUnifiedGroupWritebackPermissions Function will give required permissions to the AD synchronization account, which include the following:
        1. Generic Read/Write, Delete, Delete Tree and Create\Delete Child for Group Object types and SubObjects

        These permissions are applied to all domains in the forest.
        Optionally you can provide a DistinguishedName in ADobjectDN parameter to set these permissions on that AD Object only (including inheritance to sub objects).
        In this case, ADobjectDN will be the Distinguished Name of the Container that you desire to link with the GroupWriteback feature.
```
...and also one of the examples covers it:
```powershell
.EXAMPLE
       Set-ADSyncUnifiedGroupWritebackPermissions -ADConnectorAccountName 'ADConnector' -ADConnectorAccountDomain 'Contoso.com' -ADobjectDN 'OU=AzureAD,DC=Contoso,DC=com'
```
It is a good idea to use it, vs granting permissions all through the entire forest which won't be necessary (only the chosen OU needs the permissions set).
@PRMerger12
Copy link
Contributor

@JeremyTBradshaw : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@billmath
Copy link
Contributor

#sign-off

@ktoliver ktoliver merged commit 24b1b6e into MicrosoftDocs:master Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants