Mining User Behavior in Social Environments