본문 바로가기
카테고리 없음

InfoPath 2010 – UserProfileService.asmx

by 이완주 2012. 4. 4.

InfoPath 양식을 만들면 자동으로 양식에 해당 사용자 정보가 입력 하도록 하는 방법을 찾아봤습니다.

SharePoint의 막강한 기능 중 하나가 UserProfileService를 이용한다면 AD 정보와 인사 정보 등을 통합하여 한꺼번에 검색하여 등록할 수 있어 편리해 보이더군요.

그래서 아래 정리해 봤습니다.

대충 양식은 아래와 같습니다. 대충 디자인 바꾸고

간단한 텍스트 필드를 만들었습니다. 테스트를 위해 3개의 값을 선언하였습니다.

읽기 전용으로 바꿔 표시된 내용을 수정하지 못하게 합니다.

InfoPath에서 사용자 정보를 UserProfileService를 이용하는 방법을 정리합니다.

UserProfileService 기본 위치는 아래와 같습니다.

http://<server>/_vti_bin/UserProfileService.asmx

아래는 글로벌소프트의 UserProfileService.asmx의 내용 확인한 결과 입니다.

http://sps.globalsoft.co.kr/_vti_bin/UserprofileService.asmx

 

InfoPath에서 데이터 연결을 이용하여 연결 구성합니다.

GetUserProfileByName을 지정 합니다.

 

각 필드에 UserProfile 값을 대입 시키기

 

이름 : PreferredName , 부서 : Department, 직급 : Title

 

아래 참고 값 입니다.

GetUserProfileByName() method

http://codesupport.wordpress.com/2010/04/05/sharepoints-userprofileservices-getuserprofilebyname-method/

The call to this webmethod in SharePoint Server 2007 resulted in the following properties:
UserProfile_GUID, AccountName, FirstName, LastName, PreferredName, WorkPhone, Office, Department, Title, Manager, AboutMe, PersonalSpace, PictureURL, UserName, QuickLinks, WebSite, PublicSiteRedirect, SPS-Dotted-line, SPS-Peers, SPS-Responsibility, SPS-Skills, SPS-PastProjects, SPS-Interests, SPS-School, SPS-SipAddress, SPS-Birthday, SPS-MySiteUpgrade, SPS-DontSuggestList, SPS-ProxyAddresses, SPS-HireDate, SPS-LastColleagueAdded, SPS-OWAUrl, SPS-ResourceAccountName, SPS-MasterAccountName, Assistant, WorkEmail, CellPhone, Fax, HomePhone.

댓글