Coder Social home page Coder Social logo

venh / invalidspsiteusers Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 139 KB

Invalid User Details for SharePoint 2007 and 2010 Sites. Client Based Utility to export invalid users from a SharePoint site (2007 and 2010), as a CSV file using native SP Web Services (UserGroup.asmx and People.asmx)

C# 100.00%
sharepoint 2007 2010 client users spwebservices

invalidspsiteusers's Introduction

Many a times, there will be a need to identify invalid / disabled users from a SharePoint site, which essentially means, users may be present in the user groups of Share Point, but they may have moved out of the organization and hence may have been disabled / deactivated from the Active Directory (for non- AD users also, I have a solution.So, don't worry.:). This is especially the case, when there is a migration from older versions of a SharePoint to newer versions. There are 3rd party tools out there in the market, which can actually do this for you, but most of them are not free. Also, there can be server based solutions using Object Model, which can also help to achieve the same results, but the drawback is that, they need to be run from within the server. This may not be possible many times. This client based utility exactly addresses these issues. It is a console application based on .Net APIs and native Share Point Web Services. So, all you need to run this utility is .Net framework 3.5 or higher, which essentially will be a part of most of the Windows OS. But, please do make sure, you run it with an account which has at least read access to the site, from where you want to get this information.

For scenarios, where the users are not in Active Directory, but maintained in a different store like SQL Server, I have given a different flavor, which again uses, native SP web services, but without .Net APIs for Active Directory.

The utility is flexible enough to be used with both SharePoint 2007 and SharePoint 2010 versions, since it relies on native SP web services. The utility exports the invalid users, as a CSV (comma separated) file and it also prints the name(s) and count of the invalid users on the console. It also prints the total user count on the console. The below screen shot demonstrates a sample.

Note: Make sure you are connected to the network to be able to access the site first and LDAP server is available, in case you are using AD. You can infact, use the Web service version alone for both AD and non-AD scenarios. The reason for using .Net AD APIs for the AD based version, is that, it is slightly faster than the flavor using only the web services. However, you can always use the web service flavor of the utility in both the scenarios.

Note: I have moved this from my actual project hosted (now archived) in CodePlex at:

https://archive.codeplex.com/?p=invalidspsiteusers

invalidspsiteusers's People

Contributors

venh avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.