Is there an API that returns (or sets) a user’s security and privacy settings?