I had no idea what to title this, so please excuse the stupidity of it. I've written a WPF application that runs as an xbap on my intranet server. What I want to be able to do is have the IT staff update users credentials and have it save to AD. So far it has worked, and I use "directoryEntry.commitChanges()".

However my issue is that, I also have other users who do not have full permission to edit all AD fields. For example i have testUser who can only edit the notes field of any user in AD. With my application, when I try to do a commitChanges on testUser, I get the permissions exceptions of course. Is there a way to save/update individual fields or for lack of a better phrase "Update only what I can" and just ignore the rest?

Please let me know if this isn't clear. I haven't had luck googling this at all. Thanks in advance!

P.S I'll try to answer be active here (i'm new) and help answer questions if I can.

The way I have done something like this before is to create a table in my database for users. Before changing any user credentials, determine if a user has full access or not by checking their status from the table created.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.