Story-3133: implement the security check when visibility mode is 'FriendsAndGroups'.
Story-3133: return extended visibility column in sp.