YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: Leveraging User Profiles and MySites

Leveraging User Profiles and MySitesIn SharePoint 2010 and 2013

Beatrice Baciu - ArchitectDerek Cash-Peterson - Practice Director

Page 2: Leveraging User Profiles and MySites

Presentation Title | (#)

thebookofsharepoint.blogspot.com @BeatriceBaciu

@SPDCP www.spdcp.com

Page 3: Leveraging User Profiles and MySites

Presentation Title | (#)

The Challenge

• Centralize all profile data

• Searching profile data

• Integrate with other systems of record

Page 4: Leveraging User Profiles and MySites

Presentation Title | (#)

Agenda

• How does the user profile service work?

• The benefits of the user profile service.

• How does the user profile relate to MySites?

• Configuring user profile service

• Ways to develop against the user profile service in 2010 & 2013

Page 5: Leveraging User Profiles and MySites

Presentation Title | (#)

What We Are Not Talking About

• Enterprise Social

• Tagging/Notes

• Basic configuration of User Profile Service

Page 6: Leveraging User Profiles and MySites

Presentation Title | (#)

How Does the User Profile Service Work

SharePoint

User ProfileService

Application

FIM

C#

Direct Active Directory Import

BCS

External System

?

Active Directory

Page 7: Leveraging User Profiles and MySites

Presentation Title | (#)

Benefits of the User Profile Service

• Allows centralized location for all user properties

• Aggregation of user properties regardless of source

• Out-of-the-box storage of links to user mysites

• MySite provides individual location to manage and store documents, links, etc.

• Easy consumption of data in code

Page 8: Leveraging User Profiles and MySites

Presentation Title | (#)

How does the user profile relate to MySites

• There is a link to the users MySite in the User Profile

• MySite provides user with an interface to edit profile data

• MySite Provides an individual repository for users that is security trimmed

• Aggregation of all user profile properties in one source

Page 9: Leveraging User Profiles and MySites

User Profile Service Demo Configuration with ADFS and a custom database

Page 10: Leveraging User Profiles and MySites

Presentation Title | (#)

Page 11: Leveraging User Profiles and MySites

Presentation Title | (#)

Recap

• Use AD/ADFS as primary sync connection

• Use BCS to import additional profile properties

• Use property mapping to aggregate the User Profile

• If using SPD, the primary key will be used as the identifier; modify the BDCM file yourself and use a unique logical key

• Permissions in BDC

Page 12: Leveraging User Profiles and MySites

Presentation Title | (#)

Troubleshooting

• Connections Disappear: consider restarting the User Profile Synchronization Service

• Random Sync issues: consider restarting the SharePoint Timer Service

• when MySite gets created, user profile gets created if not there

Page 13: Leveraging User Profiles and MySites

Presentation Title | (#)

Limitations

• BDC cannot be the primary sync connection

• Duplicate profiles

• Once sync connection is deleted, profiles need to be purged via PS

Page 14: Leveraging User Profiles and MySites

User Profile Service in Farm-level scenario

Page 15: Leveraging User Profiles and MySites

Presentation Title | (#)

Design Approach

Page 16: Leveraging User Profiles and MySites

Coding with the User Profile Service in SharePoint 2010

Page 17: Leveraging User Profiles and MySites

Coding with the User Profile Service in SharePoint 2013

Page 18: Leveraging User Profiles and MySites

Presentation Title | (#)

User Profile Service Data Access via REST

• GET• All User Properties for Current User

http://siteurl/_api/SP.UserProfiles.PeopleManager/GetMyProperties

• Get Specific Property for Current Userhttp://siteurl/_api/SP.UserProfiles.PeopleManager/GetMyProperties?$select=PictureUrl,AccountName

• Get All Properties for Specific Userhttp://siteurl/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='domain\username’

• Get Specific Property For Specific Userhttp://siteurl/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='LastName')?@v='domain\username‘

Page 19: Leveraging User Profiles and MySites

Presentation Title | (#)

User Profile Service Data Access via REST

• POST• Provision User MySite

http://siteurl/_api/SP.UserProfiles.ProfileLoader.GetProfileLoader/GetUserProfile/CreatePersonalSiteEnqueue

• Set Current User’s Profile Picturehttp://siteurl/_api/SP.UserProfiles.PeopleManager/SetMyProfilePicture

• NOTES• Changing user’s profile properties is not implemented in REST or CSOM• Deletion of user profiles is not implemented in REST or CSOM• o365 authentication uses account names like @v='i:0%23.f|membership|

[email protected]

Page 20: Leveraging User Profiles and MySites

Presentation Title | (#)

Recap

• How the user profile service works.

• The benefits of the user profile service.

• How does the user profile relate to MySites?

• Configuring user profile service

• Ways to develop against the user profile service in 2010 & 2013

Page 21: Leveraging User Profiles and MySites

Thank You Event Sponsors• Please visit them and

inquire about their products & services

• To win prizes make sure to get your bingo card stamped by ALL sponsors

Page 22: Leveraging User Profiles and MySites

Beatrice Baciu@BeatriceBaciuhttp://thebookofsharepoint.blogspot.com/

Derek Cash-Peterson@spdcphttp://www.spdcp.com

BlueMetal Architectswww.bluemetal.comBlog.bluemetal.com@bluemetalinc

Thank You!

Page 23: Leveraging User Profiles and MySites

We Are Hiringin NYC!

SharePoint DeveloperTechnical Designer / Front End Developer UX Software EngineerUX Software ArchitectJava ArchitectSoftware Operations Mgr (Norwalk, CT)

Learn more:https://www.linkedin.com/company/bluemetal-architects/careers


Related Documents