users, profiles, and mysites: managing a changing sharepoint user population

26
Users, Profiles, and MySites Managing a Changing SharePoint User Population

Upload: paul-stork

Post on 01-Dec-2014

6.906 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Users, Profiles, and MySites

Managing a Changing SharePoint User Population

Page 2: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Paul Papanek Stork

• Principal Architect for BlueChip Consulting Group• http://www.bluechip-llc.com

• Contributing Author• Developer’s Guide to WSS 3.0• MOSS 2007 Best Practices

• Author • MCTS: WSS 3.0 Configuration Study Guide (70-631)• Pro SharePoint 2010 Development for Office 365

• Contact Information• Email: [email protected]• Blog: http://dontPaPanic.com/blog• Twitter: @PStork

Page 3: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Agenda

• AD Users, Profiles, & the UserInfo table• How SharePoint Security Works• Managing Profile Property/UserInfo

Changes• Filtering User Synchronization• Cleaning up MySites and Profiles

Page 4: Users, Profiles, and MySites: Managing a Changing SharePoint User population

User Profiles and UserInfo Table

• Foundation and Server are different• Foundation – UserInfo table only• Server – UserInfo table and Profiles

• Profiles can be imported from AD, LDAP, or BCS• Profile changes are synced to UserInfo table

• Quick sync every 5 minutes (new users only)• Full sync hourly• Users not marked as active are NOT sync’d

• User information not pulled from consistent location• Lists and Welcome Menu use UserInfo table• People search crawls profiles

Page 5: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Related ServicesW

eb F

ront

End

User Profile Service

ProfileSynchronization

ServiceInstance

Profile ServiceInstance

SearchIndexing Tags and Security Trimming

Enterprise MetadataTagging and Profile Properties

WFE talks to the service and SQL, maintains

Front-end cache

Mid-tier cache, optimized for most-used profiles, 256 Mb default (good

for 500k users on average)

Social Data Sync

Profiles

User Profile Service

Page 6: Users, Profiles, and MySites: Managing a Changing SharePoint User population

User Profile Timer JobsName Description Timing

Activity Feed Cleanup Cleans up pre-computed activities that are used in activity feeds that are older than 14 days. This job does not affect the User Profile Change Log.

Daily at 3 AM

Activity Feed Pre-computes activities to be shown in user activity feeds. HourlyAudience Compilation Computes memberships of defined audiences. Weekly, Sat at 1 AMMy Site Suggestions Email Sends e-mail messages that contain colleague and keyword suggestions

to people who do not update their profile often, prompting them to update their profiles.

Monthly, 15th at 10 PM

Social Data Maintenance Aggregates social tags and ratings and cleans the social data change log.

Hourly, 30 min after

Social Rating Synchronization Synchronize rating values between Social Database and Content database

 

Change Cleanup Job Cleans up data that is 14 days old from User Profile Change Log. Daily at 10 PMChange Job Processes changes to user profiles Hourly, on the hourIncremental Synchronization Synchronizes user, group and group membership changes between the

User Profile Application and specified directory sourceDaily at 1 AM

Language Synchronization Job Looks for new language pack installations and makes sure that strings that related to the user profile service are localized correctly.

Every minute

SharePoint Full Synchronization Synchronizes user information from the user profile application to SharePoint users and synchronizes site memberships from SharePoint to the user profile application.

Hourly, on the hour

SharePoint Quick Synchronization

Synchronizes user information from the user profile application to SharePoint users who were recently added to a site.

Every 5 minutes

My Site Cleanup Job When a user is deleted, sends an e-mail message to the manager containing a request to the manager to move any documents or data that the manager wants to preserve, because the site might be deleted in the future.

Hourly, on the hour

System Job to Manage User Profile Synchronization

Manages provisioning, run steps and additional tasks related to User Profile Synchronization. (Note: Don’t Change Timing)

Every minute

Page 7: Users, Profiles, and MySites: Managing a Changing SharePoint User population

SharePoint Security

• SharePoint handles Authorization not Authentication • Profiles have no connection to Authorization• Authorization is the union of three things

• Principal - SharePoint User or SharePoint Group• Permission Level – Named set of Permissions• Securable Object – Web site, List, or Item

• Key Understandings• Inherited by default• Users, Groups, and Permission Levels are shared by all sites in a

Site Collection• Three part union can be applied anywhere that Inheritance is

broken• Security only goes down to the List Item level

Page 8: Users, Profiles, and MySites: Managing a Changing SharePoint User population

SharePoint Security

Principals• Groups• Users

Permission Level• Read• Contribute• Full Control• Etc.

Securable Object• Site• List• Item• Document• Etc.

SharePoint Security

Page 9: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Managing SharePoint Security

Page 10: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Problems Editing User Profiles

• Some profile properties are not editable• Privacy level for some properties are locked• Errors editing fields that require Managed

Metadata• Ask me About MemberOf• Job Title Department• Proxy Addresses Interests• Office Location Followed #Tags• Past Projects• Skills• Schools

Page 11: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Problems Synching User Information

• Most UI information pulled from User Info, not Profiles

• Two Sync Timer Jobs to Sync Information• Problem: Inactive Users Ignored• Inactive Users (pre-2010)

• Permissions gained through AD Group Membership• Must Login to be in Userinfo Table• Must Contribute to be marked ACTIVE

• An Alternative Method• Stsadm -o sync -ignoreisactive 1• Stsadm -o sync -deleteolddatabases 0

Page 12: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Updating User Info

Page 13: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Additional Challenges

• How to keep from Importing All users• Filter based on OU• Filter based on UserProperties

• UserInfo still used in List & Library Metadata• Profile Synch Deletes User Profile but not

UserInfo• If you delete User from Site Collection Metadata

breaks

Page 14: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Property Filter Bit On Equals Value

Disabled Account 2

Account Locked Out 5

No Password Required 6

Computer Account 13

Domain controller Account 14

Non-expiring password 17

Password Expired 24

Common Profile Sync Filters

• Full List available at:http://www.harbar.net/archive/2011/02/22/323.aspx

Page 15: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Effect of Filtering Users

• UserInfo Table Entry Remains• Disabled Users can no longer log in• Profiles will be deleted if Filtered out of

Sync• Re-Sync’d Profiles have My Site

Issues• Can’t Connect to existing MySite• Can’t Create a New MySite• Fix is to edit the Personal Site address property

Page 16: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Filtering Disabled Users

Page 17: Users, Profiles, and MySites: Managing a Changing SharePoint User population

What’s in a MySite

• Shared Locations• My Site• My Newsfeed• My Profile

• Personal Locations• My Content – Personal MySite

• Personalization Site Tabs• Created & Managed Centrally• Displayed as Tab in MySite

Page 18: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Cleaning up MySites and Profiles

1. User’s AD account/profile is deleted

2. User Profile Service Incremental Sync runs (Not User Profile to SharePoint Sync)

3. My Site Cleanup Job runs

4. User’s Manager receives e-mail and access to User’s MySite

5. Manager retrieves Intellectual Property from MySite

6. User’s MySite is deleted

Page 19: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Email Sent to Manager

Page 20: Users, Profiles, and MySites: Managing a Changing SharePoint User population

MySite Deletion

• Deletes MySite after 14 days• Based on an entry in the Profile database in the

MySiteDeletionStatus Table

• Requires Custom Code to prevent or postpone

• Not archived before deletion• Deletion Approval is not required

Page 21: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Issues & Weak Points

• Lots of dependencies on Manager• Defined in Active Directory• Is a SharePoint User• Has a valid email

• User Profile Sync• User Deleted in AD • Disabled Users if Filtered

• UserInfo Table• References not Deleted with Profile• Manual clean-up of InfoTable causes loss of history

Page 22: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Automatic Profile Deletion

Page 23: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Avoiding Pitfalls

• Name Groups based on where theywill be used to avoid misuse

• Don’t adjust Group membership in sub sites

• Always break inheritance from the top down in the site hierarchy

• Delete old MySite before re-synching to create User Profile

Page 24: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Best Practice Alternatives

• Ensure that all dependencies are in place• Do not remove old users from People and

Groups list (UserInfo)

- or -• Create a Custom Workflow for off-

boarding1. Disable AD users rather than delete them

2. Delegate Site Collection Administrator role

3. Mark profiles inactive with custom field

4. Do not remove old users from People and Groups list

Page 25: Users, Profiles, and MySites: Managing a Changing SharePoint User population

Additional Resources

• Synchronize user and group profiles in SharePoint Server 2013 - Technethttp://tinyurl.com/ProfileSync2013

• Rational Guide to implementing SharePoint Server 2010 User Profile Synchronization- Spence Harbarhttp://www.harbar.net/articles/sp2010ups.aspx

• Inside the SharePoint 2010 My Site Cleanup Timer Job http://tinyurl.com/mySiteCleanup

Page 26: Users, Profiles, and MySites: Managing a Changing SharePoint User population

QUESTIONS?

Contact InformationEmail: [email protected]

Blog: http://dontPaPanic.com/blog

Twitter: @PStork