Thank you for the great work on the Active Directory Forge component. I’ve been exploring its capabilities and noticed that by default, it doesn’t seem to support removing or cleaning existing attributes from user profiles in Active Directory.
Could you please confirm if this functionality is currently supported or if there are any recommended workarounds? If not, would it be possible to consider adding this feature in a future update?
Thanks in advance!
Hi Naman,
You’re right — the current version of the Active Directory Library doesn’t natively support removing or cleaning existing attributes from user profiles in Active Directory. The library mainly focuses on creating, updating, and authenticating users, but not attribute deletion. However, you can work around this by extending the component and using the System.DirectoryServices namespace directly in a custom .NET action. This allows you to access the user object and explicitly set the unwanted attribute to null or call the Properties["attributeName"].Clear() method before committing the changes to AD. Once implemented, you can expose this new action in your extension and use it from your OutSystems application just like the built-in ones. If you’d prefer not to modify the library yourself, you can also raise a feature request on the Forge page so the maintainer can consider adding this functionality in a future release.
Hope this clarifies things!Thanks and Regards,Akshay Deshpande