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" %>
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);