Merge "Add API for checking whether a user is restricted."