Retrieve user info


I would like to be able to retrieve user account information. So far, I have been able to fetch a network id (i.e. domain/username). However, I would like to be able to get more information on a user. For instance, I would like to be able to retrieve the actual user name (e.g. Michael Jones). If getting the actual name is possible, I would like to have the first name and last name stored in their own variable. Also, if possible, I would also like to be able to extract their department name and job title.

This is the code snippet I used to extract the user id:

<%@ Page Language="C#" AutoEventWireup="true" %>

<%@ Import Namespace="System.IO" %>

<script runat="server">

protected void Page_Load(object sender, [url removed, login to view] e)


string User = [url removed, login to view];

[url removed, login to view] (User);



Thank you,

Kemahiran: .NET

Lihat lagi: michael page, michael jones, info job, import io, g network, VOID, User, user account , snippet, retrieve, michael michael, io, info g, script sender, user account system, net fetch, info system, code retrieve information, language import, response write, sender name, retrieve page, user account page, sender script, object user

Tentang Majikan:
( 38 ulasan ) Montreal, Canada

ID Projek: #353231

Dianugerahkan kepada:


Hey man, you're talking Active Directory right?

$50 USD dalam 2 hari
(8 Ulasan)