Add API for checking whether a user is restricted.

This is used by the SMS role.

Bug: 124452117
Test: build
Change-Id: I90bb17654e63cda34b3253024836aa9f4dbc2a4f
2 files changed