VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Get NT User Info (FullName, Groups) using ADSI

Shannon Norrell  (1 Submission)   Windows System Services   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

Example code showing how one may extract NT Domain User information using ADSI (Active Directory Service Interfaces).
This code simply extracts a user's FullName and lists the Groups to which he/she belongs, given his username.
This code will work across domains, provided the correct authentication values (username, password) are inserted.

Assumes
Uses ADSI (Active Directory Services) 2.0 or later.

Returns
Example from IMMEDIATE WINDOW: ================================================== NT UserName Webdood FullName Shannon Norrell This user belongs to the following NT Groups: Domain Users

API Declarations
Must Reference the ActiveDS Type Library. (activeds.tlb)

Rate Get NT User Info (FullName, Groups) using ADSI (5(5 Vote))
Get NT User Info (FullName, Groups) using ADSI.bas

Get NT User Info (FullName, Groups) using ADSI Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters