Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27025

VS 2010 Querying Active Directory Groups using VB2010

$
0
0
Good evening

I really hope that someone out there in the forumsphere can help me with something that's been driving me crazy all day.

My company (a contact centre) runs a piece of web-based software which we can script so that our end users can capture information obtained from callers to our many helplines. The whole thing is back-ended onto SQL, with access to it being controlled by a single SQL 2005 database. Until now, if I want to grant users access to a particular campaign database I need to go in and manually create them a user record (if they don't have one already) and then assign them the permissions to access a particular campaign. This has been fine up to now, but the requests to add new users to the system, or grant new permissions to existing users, have become more and more frequent, as has the number of users that I'm having to create/modify.

What I would like to be able to do is write a small VB application which could query the names of users in a pre-determined set of Security Groups on Active Directory. That information could then be passed to a series of SQL Stored Procedures which would create new users (if necessary) and assign the database access permissions. However, I'm stumped as to how to go about doing it. Years ago I had VB.NET 2002 code which could interrogate a user's Active Directory record to find out if s/he had membership of a particular group, but I'm now looking to do it the other way round.

At this stage, I should let you know that although I have some knowledge of VB.NET, I'm by no means an expert in the field so I'd be grateful if any suggestions could be mindful of my lack of knowledge in this matter.

Many thanks in advance.


Ian Henderson

Viewing all articles
Browse latest Browse all 27025

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>