Python Forum
Active Directory add an attribute. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Active Directory add an attribute. (/thread-30203.html)



Active Directory add an attribute. - SpongeB0B - Oct-12-2020

Hi everyone,

I'm exploring pyad to manipulate active directory.

I already use :
update_attribute()
But I don't see anywhere in the documentation of pyad a way to create a new AD attribute.... :/

is there a way (with pyad or with any other Python packages ?)

Thanks


RE: Active Directory add an attribute. - DeaD_EyE - Oct-12-2020

Try the update_attribute with non existing keys.
Then check, if your AD has the new attributes set.


RE: Active Directory add an attribute. - SpongeB0B - Oct-13-2020

@DeaD_EyE
I tried of course but this raise an error
Quote: the request attributes does not exist

but it's ok , I've found a workaround (I use another existing attributes :/ )