VB console app - having trouble interacting with sharepoint site

sharepoint , vb , console Dayton, United States
  • 11 years ago


    I am working with a console application that is reading off of a database a list of users, as well as looking at a file structure that will be copied to a sharepoint site. There are many teams that will each be getting a document library for their respective files and folders. I have a table that lists the users that should have permissions in each library, and the role they should be assigned. These users are in active directory.

    I am trying to find code that would input an AD user into a specified document library with a specified role, but am not having any luck. I have taken note of the 'ensureUser' command, but it does not appear to be able to target a document library (or i misunderstand it) and it applies users only as administrators. Does anyone have experience with this?

    Thanks for any help in advance,


Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are 10 types of people in the world, those who can read binary, and those who can't.”