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

Issue: General question AdUser supporting custom extended schemas properties #630

Open
albvar opened this issue Oct 25, 2020 · 4 comments
Open
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.

Comments

@albvar
Copy link

albvar commented Oct 25, 2020

Hello,

My environment has had the AD user schema extended to have ExtensionAttribute1-15.
I am currently supporting this by leveraging native Set-AdUser -Replace @{Extensionattribute1 = 'myvalue'}
Retrieval involves Get-AdUser abc -Properties ExtensionAttribute1
Is this possible to support within the AdUser resource? Wanted to ask for guidance, thanks in advance.

@johlju
Copy link
Member

johlju commented Oct 30, 2020

I think it would be fairly easy to add those properties as parameters to the resource. They are just handled as text values right? So the would be added like a similar property like Description. 🤔

@johlju johlju added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Oct 30, 2020
@X-Guardian X-Guardian changed the title Issue: General question xAdUser supporting custom extended schemas properties Issue: General question AdUser supporting custom extended schemas properties Nov 15, 2020
@X-Guardian
Copy link
Contributor

It would not make sense to include these as standard properties of the ADUser resource as they are not part of the standard AD Schema. The only sensible way to support this would be adding an OtherAttributes hashtable property to the ADUser resource, the same as the New-ADUser cmdlet uses in this scenario. This would need to make use of the EmbeddedInstance("MSFT_KeyValuePair") MOF resource type.

@albvar
Copy link
Author

albvar commented Apr 17, 2022

It would not make sense to include these as standard properties of the ADUser resource as they are not part of the standard AD Schema. The only sensible way to support this would be adding an OtherAttributes hashtable property to the ADUser resource, the same as the New-ADUser cmdlet uses in this scenario. This would need to make use of the EmbeddedInstance("MSFT_KeyValuePair") MOF resource type.

I am still highly interested in seeing this functionality supported.
Any additional guidance in terms of using "EmbeddedInstance("MSFT_KeyValuePair") MOF resource type."? If I can understand how to implement this I could potentially contribute the changes back to the repo and currently have the bandwidth to do so.

@johlju
Copy link
Member

johlju commented Apr 20, 2022

For reference how to implement it can be found in this resource https://github.com/dsccommunity/DnsServerDsc/blob/main/source/DSCResources/DSC_DnsServerRootHint/DSC_DnsServerRootHint.psm1. See both the schema and the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

3 participants