.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

Automatically validate names in SharePoint list to Active Directory names

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :C#
 

I have some employee names in a list. Since there is employee turnover, I want to be able to keep a track of which employees have left so that I can take appropriate action. Currently it is a manual process to look at each member of the list and compare it against the GAL. Is there a OOTB feature / script / workflow I can use that does a check of the employee name against the name in Active Directory to ensure if the user still exists and if the user does not exist then it send an email to me automatically.


Ravi Acharya


View Complete Post


More Related Resource Links

Creating a list with non-english field names in Sharepoint 2010 from visual studio

  

Hi experts,

I created a sharepoint list instance in visual studio 2010 with English field names and not-english display-names.

when I deploy the solution and browse to the list I get non-readable field names. I tried to add
"xml version="1.0" encoding="utf-8" "
to the schema.xml file but didn't change anything. any clue?


Search and Destroy,,,

Getting list of users reporting from specific Manager from Active Directory

  

Dear All,


I am have requirement like displaying all the user information reporting to specific manager from Active Directory.


Please help me regarding this.


Regards

Prakash


List Users from Active Directory

  

When i try to List the users from Active directory, i get this exception.

Error while processing.System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at System.DirectoryServices.DirectorySearcher.FindAll()

The code i used is :

DirectoryEntry de = new DirectoryEntry(_path);DirectorySearcher deSearch = new DirectorySearcher();

deSearch.SearchRoot =de;

deSearch.Filter = "(&(objectClass=user) (cn=" + UserName +"))";

SearchResultCollection results = deSearch.FindAll();

 But the DirectoyEntry method is getting validated if i use the overloaded method : DirectoryEntry(_path, domainAndUsername, password);

Please advice me.

Duplicate column names from forms in SharePoint lists

  

 

I'm in the process of migrating from a WSS 2 site to WSS 3/MOSS. On the old site I used an Infopath 2003 form for absence requests. During the migration I now use Infopath 2007. There wasn't any problem initially when the form was stored with the SharePoint form library. However, when I published the form as a content type from Infopath 2007 and then added that content type to the form library, there are two columns for each piece of data from the form. (One from the content type and one from the form list.) I relinked each old form (list content type) to the new AbsenceRequest content type and removed the original one from the list. However, the duplicate column names are still there. Since they came from the Infopath form, they are not editable or deletable from the SharePoint list management interface. The duplicate column names make it tough to build views since it isn't apparent which column to use in the form building UI. It can be determined form the overview display, but it is very cumbersome.

 

Does anyone know a way to get rid of the old, absolute, columns?

Changing an authentication of SharePoint site from SQL-FBA to Active Directory

  
Hi,      We are using MOSS 2007. I have customized a web application using Custom web part, features and ASPX pages. we have configured SQL-Form based Authentication for this site. I have also used FBA user management functionality from Codeplex. I have created some groups and my application (custom aspx page) is referencing these groups to send an email to specific person as per his role for certail events.        I have a requirement to migrate this set up on other server and change the authentication from SQL-FBA to Active Directory. So if I have to change the Authentication from SQL-FBA to AD then what are the steps I have to follow to make this happen?      I would appreciate any help on this. Thanks, Patav    

Maintain users and groups list of Active Directory for an asp.net web application only

  
Hi, I have configured active directory in my server 2008. We have a web project using asp.net mvc named Audit planning and Execution Software(Apex2).What we want to do is to authenticate Active directory users for this project.I can get all active directory users, groups, users of a group etc.I want to add users in active directory for the Apex2 project only using asp.net.I also want to display only the users and groups of Active Directory registered with the Apex2 project only. And I also want to add active directory users from whole AD list to our project's AD list. Can you please tell me, how will I do this. Shall I create an Organizational Unit and maintain all users and groups there for our project? Or, is there any other way to do this?  please help me.Thank You

Issues with updating Lists with Manager Names and User Profile Imports in SharePoint 2010 Server

  
I am having a curious problem with SharePoint 2010 Server. I have imported all the user profiles of our organization into SharePoint User Profile Service Application from our Active Directory. When the Manager name imports it comes in as domain/login. The organizational browser seems to work for MOST people, but not all. I believe this is contributing to my second problem, which is, I have setup a very simple workflow in SharePoint Designer that simply looks up the persons Manager, then places that information into a field called "Approval 1". After that it looks at Approval 1 and get the Manager name and populated "Approval 2" with that information, and so on. I have used an Impersonation Step as the Farm Administrator in the workflow and I have done it without the impersonation step. Both results in the same problem. When I enter my name into the list and run the workflow it runs beautifully give every manager up the chain to the top. However, if I put any other person's name in there it gives me the error "Workflow failed to get user profile for user: ____". I went to my supervisor's office and asked him to run the workflow. Using his login he had the exact same result--if my name was in there it worked great, otherwise, it gave an error. Any help with this strange error would be greatly appreciated.  Thanks

Is it possible to configure sharepoint to use active directory service configured in another server

  
I installed sharepoint in a computer which is not configured as a domain,I want it to use the active directory services in the domain which is another computer

List lookup to document library not showing folder names

  
Hi all, I've got a Sharepoint List, which has a lookup field to a Document Library on the same site. That document library library is populated with several folders, each with several Word documents within. I want my lookup (in the List) to only display the top level folders in the document library. I managed to do that in my test environment. But in my production environment doesn't list the folder names. I've compared the settings in the two and they look identical. What could be wrong, and how to I fix it so that the folder names appear? I'm using SharePoint 2007. Thanks in advance for the help.

How to provision custom list and import custom aspx pages automatically in sharepoint?

  
What is best way to create custom list (Document library) and import custom .Net pages automatically. The goal is to avoid create the list and upload those .net page to the list manually. Any code snippet that would be great help. thanks

How to insert a name field on an InfoPath path that allows you to insert names from the AD directory

  
How can I set up a field on an Infopath form so that when I click on a "Check Names" button, (exactly the same way it works on a SharePoint point Name field), the name is checked against the AD directory? I am not trying to control user access to sections of the form - I am simply adding names to the form that is collecting data on a task - such as Delivery Lead, Designer, etc.

Silverlight Client Object Model - List Fields Names

  

I'm trying to get the DisplayName of the Fields of a list through the Client Object Model (Silverlight)

I can retrieve the fields of a list as an authenticated user but not as anonymous: getting list.fields as anonymous simply returns Access Denied.

Is there a way to enable list.fields for the Client Object Model?

Or is there any other way of getting the DisplayName of Fields of a List?


Small site embedded login validating against Active Directory and redrecting to SharePoint site

  

I am only finding pieces of this information. 

Challenge: Have a standard page with a login box in the corner that is exposed on the web.  The login will validate an employee against AD and also redirect them to a site collection.

I have found information on claims based authentication and the AD Membership provider.  I have also found information on form based login pages.  Most of these examples though just modify the SharePoint form login.  I want to create just a small login box on a page that is already created.  The one thing that I can't seem to find any really solid information on is the redirect to a site collection.

Can anyone tie all of this together for me?  Am I using the correct terminology and heading down the right path.

Any help is greatly appreciated.

Unable to Trust Active Directory So that can Be included In sharePoint 2010

  

Hi ,

I wanna add another Active Directory to User Profiles in SharePoint 2010,Please guide me in Step by Step.

Thanks in advance


Active Directory last name changed not updated in sharepoint service 3.0 sp2

  

Hello,

we have an active directory member where the last name has changed. However the change is not reflected in sharepoint services sites. When the user opens the sharepoint sites the old last name is displayed. When i look under the properties of the user in sharepoint the last name and the email-adress is still the old one.

How can i correct that?


validate active directory URL in C#.Net

  

Hi,

I have one active directory URL, i want to check whether this URL is valid or not?

can you please tell me how can i check it in C#.Net.

 

Regards,

Jay

 

 


Outlook - "connect to SharePoint" and possible problem with irish names

  

Hi all,

I encountered a problem with the calendar page

<start problem>

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; InfoPath.3; MS-RTC LM 8)
Timestamp: Fri, 1 Oct 2010 09:14:18 UTC


Message: Expected '}'
Line: 1075
Char: 499
Code: 0
URI: .......
/Lists/Calendar/calendar.aspx

</end problem>

This results in the ribbon not being displayed i.e. the user doesn't have access to settings/connect to outlook etc. the user also does not have access to "+add item" and therefore cannot add calendar entries.

this error appears when I log in with an Irish user name . you may be familiar that Irish names contain "O' " e.g. O'Brien or O'Neill

when I log in as another user name without apostrophes I don't receive this error.

A possible workaround is to "connect to outlook" in reverse. is it possible to "connect to sharepoint" from Outlook ?

I know it is possible to connect to SharePoint from the backstage in

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend