Skip to main content

Cloud

For SharePoint’s Sake, Don’t Delete that AD User

Recently I was working with a client that publishes content from a secure SharePoint site to a public SharePoint site.  This publishing involves the use of the SPListItem.Copy command to copy a ListItem from the secure site to the public site.  The public and secure sites both have the same content types, but use different page layouts to display the same data.  Therefore, the Copy function makes the most sense and requires the least amount of effort.

However, since SharePoint is built on a database, SPListItem.Copy can’t just do a copy like a file system can.  Instead, it must read and write the requisite data from/to the database.  As a result, validation takes place on the data that’s being written.  Specifically, user validation occurs again.  Normally, this isn’t a problem because users don’t change that often.

In the case of this client, though, one of their content editors had left her position and her Active Directory account was deleted.  As a result, the copy operation was failing because the user could not be found.  Fortunately, the simple fix was to recreate the user account in a disabled state.  That way SharePoint could find the user in AD and complete the copy operation, but the user could no longer log in.

The moral of the story is that SharePoint is sensitive to user accounts because it relies on AD (or some other identity management system) for validation.  Therefore, your best option is to disable a user account or change permissions instead of removing a user entirely.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Andrew Schwenker

Andrew Schwenker is a Sr. Technical Consultant within Perficient’s Microsoft National Business Unit East's SharePoint practice. Andrew has nearly 2 years of experience in consulting and has participated in projects that have touched nearly every aspect of SharePoint 2010. Andrew earned his Bachelor’s degree in Computer Science as well as Master’s degrees in Computer Science and Information Systems from Indiana University. He’s interested in creating winning solutions to generate business innovation using SharePoint. Prior to starting at Perficient, Andrew completed internships with General Electric, ExactTarget, and Great American Financial Resources. During his studies, he actively participated in Alpha Phi Omega National Service Fraternity and competed in the first annual Cluster Challenge at SC07 in Reno, NV. Andrew was a part of the dynamic PointBridge team that was acquired by Perficient.

More from this Author

Follow Us
TwitterLinkedinFacebookYoutubeInstagram