Friday, March 2, 2012

Article 2: How to get user profile from Active Directory


Chuẩn bị:
-       Active directory
-       Server sharepoint 2010
-       Profile Synchoronization AD
Mỗi trang web trong Sharepoint có services gọi là UserProfileService cho phép bạn truy xuất thông tin cá nhân.Sau đây là các bước thực hiện để lấy thông tin từ userprofile hiển thị trên form infopath:
-       Tạo Data Connection trong infopath
o   Tại tab Data, chọn Data Connections
o   Trong cửa sổ Data Connections, click chọn Add
o   Trong cửa sổ Data Connection Wizard, click chọn Receive data, chọn Next
o   “From where do you want to receive your data?”, click chọn SOAP Web Services
o   Service này nằm trong thư mục _vti_binhttp://mySite/myCollection/_vti_bin/UserProfileService.asmx?WSDL
o   Click chọn GetUserProfileByName và để parameter là Blank (lấy user đang login vào web)

Thiết kế Infopath form:
-       Trong infopath 2010 có hỗ trợ theme, tại tab Pages Design, chọn Theme
-       Tab Inserts Table chọn Tables, chọn dạng layouts phù hợp.
-       Tại tab Home, thêm các control Textbox vào form và bạn phải đặt tên tường minh cho các cột, để hiển thị sharepoint list.
-       Tại tab Data, chọn Show Fields. Trong màn hình Fields có 2 chọn lựa là Main và GetUserProfilebyName chúng ta chọn Main
-       Đặt tên lại cho field, click chọn field cần đặt tên, chọn tab Properties, đổi lại tên trong trường Name
-       Để gán giá trị mặc định cho form, chọn field cần gán giá trị, tại tab Properties chọn Control Properties. Trong cửa sổ Textbox Properties, tại tabData, chọn Insert Formular
-       Trong cửa sổ Insert Formula, chọn  Insert Field or Group..., sau đó chọn GetUserProfileByName
-       Tại màn hình Select a Field or Group chọn Value, click chọn Filter Data..., click chọn Add
-       Tại màn hình Specify Filter Conditions chọn Select a filed or group.... , chọn Name, chọn OK.
-       Chọn điều kiện is equal to, chọn Type text... , nhập chữ FirstName , chọn Ok
-       Kiểm tra kết quả, tại màn hình design form template, tab Home chọn Preview  (hay nhấn F5).
-       Tương tự các field còn lại :
o   Điều kiện cho field LastName 
o   Điều kiện cho field AccountName
o   Điều kiện cho field UserName
o   Điều kiện cho field Department
o   Điều kiện cho field Manager
-       Để biết chính xác là tên gì các bạn vào cửa sổ Central Administration, chọn Manage Service Application, chọn User Profile
-       Chọn Manage User Properties

-       Chọn Edit
-       Lấy dữ kiện tại trường Name điền vào điều kiện cần Filter
Chúc các bạn thành công

Author: Lê Trung Tín

69 comments:

  1. What's up to every , because I am truly keen of reading this blog's post to be updated on a
    regular basis. It consists of pleasant data.


    My web page ... free google adwords advertisers

    ReplyDelete
  2. Thanks for the good writeup. It in truth was a enjoyment account it.
    Glance complicated to more added agreeable from you!
    However, how can we be in contact?

    Look into my web site; capsules de café vert

    ReplyDelete
  3. They are relatively easy to find, but you just have to do a little more digging than you do with a traditional
    job. These companies are paying from 50-75% commission so
    that's more than they profit themselves and still have to do all
    the work along with upkeep of the site. They also have a
    huge database full of professional online data entry
    jobs as well that are all highly reputable.

    Also visit my webpage: best work from home jobs abc news

    ReplyDelete
  4. Hello everyone, it's my first visit at this
    website, and piece of writing is truly fruitful in support of me, keep up posting these types of content.


    My homepage - casino spilleautomater

    ReplyDelete
  5. I'm really enjoying thhe design and layout of your site.
    It's a very easy on the eyes which makes it much more pleasant for
    me to come here and visit more often. Did yyou hire out a developer to create your theme?
    Exceptional work!

    Check out my site; how to win lotto scratchers

    ReplyDelete
  6. Wonderful web site. Lots of useful information here.
    I am sending it to a few buddies ans additionally sharing inn delicious.
    And obviously, thanks for your sweat!

    my page ... can i buy instagram followers yahoo

    ReplyDelete
  7. Thanks All,

    My contact at http://www.microsofttechnology.net/p/contact.html. i got my theme from internet but home page i designed the html, very simple. thanks for your comment.

    Thanks.

    ReplyDelete
  8. An intriguing discussion is worth comment. I do think thgat you need to
    write more on this subject, it may not be a taboo subject but
    usually folks don't talk about these subjects.

    To the next! Many thanks!!

    my blog post: weight loss diet recipes

    ReplyDelete
  9. Yes!Finally something about slep apnea study.


    Check out my weboog ... snoring sounds

    ReplyDelete
  10. I'm trսly enjoying thee design and layout of your blog.

    It's a vedry easy oon the eyes which makes it much more enjoyable
    fοr me to come here and visi more often. Dіd you hire out a developer to create ʏour theme?
    Superb worқ!

    green trust cash log in

    ReplyDelete
  11. Hi! Someone in my Myspace group shared this website with us so I came to take a look.

    I'm definitely enjoying the information. I'm bookmarking and will be tweeting this to my followers!

    Wonderful blog and amazing design and style.

    Also visit my page - free baby stuff

    ReplyDelete
  12. Yes! Finally something about collages.

    Also visit my homepage - garbage disposal reviews

    ReplyDelete
  13. These are truly fantastic ideas in concerning blogging. You have touched some nice things
    here. Any way keep up wrinting.

    Feel free to surf to my web-site - best skate shoes

    ReplyDelete
  14. Write more, thats all I have to say. Literally, it seems
    as though you relied on the video to make your point. You clearly know what youre talking about, why throw away your intelligence on just posting videos to your site when you could be giving us something enlightening
    to read?

    my page - best stand mixer

    ReplyDelete
  15. I love your blog.. very nice colors & theme. Did you create this
    website yourself or did you hire someone to do it for you?
    Plz reply as I'm looking to create my own blog and would like to know where u got this from.
    thank you

    Here is my site :: best orbital sander

    ReplyDelete
  16. I'm not positive the place you're getting your information, however good topic.
    I must spend a while studying much more or understanding
    more. Thank you for magnificent info I used to be searching for this info for my
    mission.

    Feel free to surf to my weblog :: best compact digital camera

    ReplyDelete
  17. Hi Everybody,

    Thanks for all of you.

    Thanks

    ReplyDelete
  18. I am regular reader, how are you everybody? This post posted
    at this site is genuinely nice.

    My web blog - gun safe reviews

    ReplyDelete
  19. Thanks you,

    Can you follow my blog and get my google plus, i will inform to you when have the new articles.

    thanks.

    ReplyDelete
  20. It is in reality a great and useful piece of info.
    I'm happy that you shared this useful info with us.
    Please stay us up to date like this. Thank you for
    sharing.

    my homepage ... rifle scope reviews

    ReplyDelete
  21. This is a really good tip particularly to those fresh
    to the blogosphere. Brief but very precise info… Many thanks for sharing this one.
    A must read post!

    my web-site: best tankless water heater

    ReplyDelete
  22. This website certainly has all the information and facts I wanted concerning this
    subject and didn't know who to ask.

    Feel free to surf to my homepage: best belt sander

    ReplyDelete
  23. I am not sure where you are getting your information, but great topic.

    I needs to spend some time learning more or understanding more.

    Thanks for excellent information I was looking for this info for my mission.



    Feel free to surf to my web page dashboard camera reviews

    ReplyDelete
  24. Do you mind if I quote a few of your articles as long as I provide credit and sources back to your weblog?

    My blog site is in the very same niche as yours and my users would definitely benefit from a lot of the information you present here.
    Please let me know if this ok with you. Thanks!

    Here is my weblog: งานพิมพ์เอกสาร

    ReplyDelete
  25. After looking into a handful of the blog articles
    on your web page, I truly appreciate your way of writing a blog.
    I saved it to my bookmark webpage list and will be checking
    back soon. Take a look at my web site as well and let me know how you feel.



    Here is my blog ... rowing machine reviews

    ReplyDelete
  26. It's remarkable to pay a visit this web page and reading the views of all colleagues regarding this piece of writing, while I
    am also keen of getting familiarity.

    Look into my blog :: plan cul

    ReplyDelete
  27. I have to show thanks to this writer for bailing me out of this issue.

    As a result of surfing around throughout the the net and finding
    proposals which are not productive, I was thinking my entire life
    was over. Existing devoid of the answers to the problems you've resolved as a result of your entire site is a crucial case,
    and those which might have in a negative way damaged my
    career if I hadn't discovered your blog post.

    Your main competence and kindness in controlling a lot of stuff was excellent.
    I don't know what I would've done if I hadn't encountered such a point like
    this. I'm able to at this moment relish my future. Thanks for your
    time very much for the reliable and effective guide. I will not hesitate to refer your site to any individual who requires support
    about this situation.

    My weblog ... creating photo books online

    ReplyDelete
  28. Also maintain an eye out for uncommon objects when you are out and about - the seashore or the countryside is usually a
    wonderful source. You can move your subject to an area that has more favorable lighting, such as in the
    shade of large tree or under a park pavilion.
    When taking macro and close up shots you need to turn your
    autofocus off and rely on manual focusing techniques.

    Feel free to surf to my website - photography tips

    ReplyDelete
  29. Ǫuality posts is the main to be a focus for the viewers to visit the site, that's what this
    web site iis providing.

    ameriloan credit

    ReplyDelete
  30. Awesome! Its really amazing paragraph, I have got much clear idea
    regardinjg from this post.

    Feel free to surf too my weblog; lotto software download

    ReplyDelete
  31. Wonderfսl blog!Do you have any recommendations for aspiring
    writers? I'm hoping to start my oown ite soon butt I'm a little lost on everything.
    Would you suɡgest starting with a free platform like Wordpress
    orr go for а aid option? Τhere are so many options out thesre that I'm totɑllү confused ..
    Any гecommendations? Thaոk you!

    loan depot online payment

    ReplyDelete
  32. Thanks for all of you. .

    in my opinion: should choose google's blog. it is free and good is huge guy. their server is very strong. so don't worry about security. ..


    Thanks.

    ReplyDelete
  33. I was suggested this blog by my cousin. I am not sure whether
    this post is written by him as no one else know
    such detailed about my trouble. You are wonderful! Thanks!


    Here is my page :: electric knife sharpener reviews

    ReplyDelete
  34. Hi there I am so happy I found your weblog, I really found you
    by accident, while I was searching on Askjeeve for something else, Anyways I am here
    now and would just like to say many thanks for a fantastic post and a all round exciting blog (I also love the theme/design), I don't have time to
    read through it all at the moment but I have saved it and also included your RSS feeds, so when I have time I will be back to read more, Please
    do keep up the great job.

    Here is my webpage - best pocket knife

    ReplyDelete
  35. I wanted to thank you for this excellent read!! I absolutely enjoyed every little bit of it.
    I have you bookmarked to look at new stuff you post…

    Also visit my homepage - pellet stove reviews

    ReplyDelete
  36. Very quickly this site will be famous among all blogging people, due
    to it's pleasant articles

    Feel free to visit my webpage :: best seat covers

    ReplyDelete
  37. Sweet blog! I found it while surfing around on Yahoo News.

    Do you have any suggestions on how to get listed in Yahoo News?

    I've been trying for a while but I never seem to get there!
    Appreciate it

    Take a look at my blog :: best windshield wipers

    ReplyDelete
  38. Thanks , I've just been looking for information approximately this subject for ages and yours is the greatest
    I've found out so far. But, what in regards to the conclusion?
    Are you sure concerning the supply?

    Also visit my site :: best car amplifier

    ReplyDelete
  39. Hello! I've been reading your web site for a while now and finally got the
    courage to go ahead and give you a shout out from New Caney Texas!
    Just wanted to tell you keep up the great work!

    Also visit my page best hunting binoculars

    ReplyDelete
  40. It's remarkable to visit this site and reading the
    views of all friends concerning this paragraph, while
    I am also eager of getting experience.

    Look into my web blog best portable speaker

    ReplyDelete
  41. Wow that was odd. I just wrote an incredibly
    long comment but after I clicked submit my comment didn't appear.

    Grrrr... well I'm not writing all that over again.

    Anyhow, just wanted to say excellent blog!

    Review my homepage - hostgator coupon codes

    ReplyDelete
  42. Hi there! I just wanted to ask if you ever have any problems with hackers?
    My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no backup.
    Do you have any methods to prevent hackers?

    My blog post; garage door openers reviews

    ReplyDelete
  43. Hi, i read your blog from time to time and i own a similar
    one and i was just curious if you get a lot of spam responses?
    If so how do you protect against it, any plugin or anything you can advise?
    I get so much lately it's driving me crazy so any help is very much
    appreciated.

    Here is my page ... best handheld vacuum

    ReplyDelete
  44. This is my first time go to see at here and i am really impressed to read everthing at one place.



    Have a look at my webpage ... best youth baseball glove

    ReplyDelete
  45. Wow! After all I got a website from where I can truly get useful information concerning my study and knowledge.



    My weblog :: best hybrid bike

    ReplyDelete
  46. Great blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple adjustements would really make
    my blog shine. Please let me know where you got your theme.
    Thanks a lot

    my website: best portable bluetooth speaker

    ReplyDelete
  47. I believe this is one of the most important information for me.
    And i am happy studying your article. But wanna remark on few normal issues, The website style is great, the articles is in
    reality great : D. Good task, cheers

    My website: best leather conditioner

    ReplyDelete
  48. Hello there! This is my 1st comment here so I just wanted to
    give a quick shout out and tell you I genuinely enjoy reading
    your blog posts. Can you suggest any other blogs/websites/forums that go over the same subjects?
    Appreciate it!

    Review my website: Singapore property forum

    ReplyDelete
  49. Have you ever considered creating an e-book or guest authoring on other websites?

    I have a blog centered on the same topics you discuss and would love to have you share some stories/information.
    I know my subscribers would value your work.
    If you are even remotely interested, feel free to send me an e-mail.


    Check out my blog singapore condo For rent No Agent fee

    ReplyDelete
  50. What a informatiln oof un-ambiguity aand preserveness of precious
    know-how oon the topic of unpredicted emotions.

    Feel free to surf to mmy web blog: super lotto software

    ReplyDelete
  51. Every weekend i used to pay a visit this web site,
    because i wish for enjoyment, for the reason that this this
    website conations truly good funny material too.


    Also visit my web site: best slide in gas range

    ReplyDelete
  52. Hello! Would you mind if I share your blog with my zynga group?
    There's a lot of people that I think would really enjoy your content.

    Please let me know. Many thanks

    Feel free to surf to my webpage; washer and dryer reviews

    ReplyDelete
  53. We're a group of volunteers and opening a new scheme in our community.
    Your web site provided us with valuable info to work on.

    You've done a formidable job and our entire community
    will be thankful to you.

    ReplyDelete
  54. What's up i am kavin, its my first time to commenting anyplace, when i read this post i thought i could also make comment
    due to this good article.

    my web site :: buy youtube subscribers

    ReplyDelete
  55. Have you ever considered publishing an ebook or guest authoring
    on other sites? I have a blog centered on the same topics you discuss and would really like to have you share some stories/information.
    I know my readers would appreciate your work. If you're even remotely interested, feel free to
    shoot me an e mail.

    my site web page - ,

    ReplyDelete
  56. Way cool! Some very valid points! I appreciate you penning this write-up and also the rest
    of the site is extremely good.

    My website: แทงบอลออนไลน์

    ReplyDelete
  57. I like the valuable information you provide in your articles.
    I will bookmark your blog and check again here frequently.
    I'm quite certain I will learn many new stuff right here! Best of luck
    for the next!

    Feel free to visit my blog post: schüssler salze

    ReplyDelete
  58. Thanks for the good writeup. It actually used to be
    a leisure account it. Glance complex to more added
    agreeable from you! However, how can we communicate?


    Feel free to surf to my webpage :: https://www.facebook.com/seohiso

    ReplyDelete
  59. Thanks for your comment, you can add my skype doquochung
    Thanks

    ReplyDelete
  60. I create a leave a response each time I especially enjoy a post on a blog or I have something to valuable
    to contribute to the discussion. It's a result of the fire displayed in the article I browsed.
    And after this article "Article 2: How to get user profile from Active Directory".
    I was actually moved enough to drop a thought ;-) I actually do
    have 2 questions for you if you tend not to mind. Could it be just me
    or does it seem like some of the remarks come across as if they are left by brain dead people?
    :-P And, if you are posting on additional social sites, I would like to follow you.

    Could you list the complete urls of all your social pages like your twitter feed, Facebook page or
    linkedin profile?

    Here is my web-site; table saw reviews

    ReplyDelete
  61. Howdy are using Wordpress for your blog platform?
    I'm new to the blog world but I'm trying to get started and set up my
    own. Do you need any html coding expertise to make your own blog?
    Any help would be really appreciated!

    My web blog ... best adjustable dumbbells

    ReplyDelete
  62. Hmm is anyone else encountering problems with the images on this blog loading?
    I'm trying to find out if its a problem on
    my end or if it's the blog. Any feed-back would be greatly appreciated.


    Also visit my blog: best robotic pool cleaner

    ReplyDelete
  63. Hi.

    I checked the image's display. it is normal. please send screenshot to me.

    thanks

    ReplyDelete
  64. always i used to read smaller articles which as well clear their motive, and that is
    also happening with this piece of writing which I am
    reading now.

    Also visit my weblog best countertop microwave

    ReplyDelete
  65. Great blog here! Also your website loads up very fast!

    What web host are you using? Can I get your affiliate link to
    your host? I wish my website loaded up as fast as yours
    lol

    Here is my web site; baseball bat reviews

    ReplyDelete
  66. Thanks,

    I using google's host: it is blogger.com. you can go there and create your blog.

    Many Thanks.

    ReplyDelete