How to block Google and Samsung Accounts using KSP
Last updated February 8th, 2024
Categories:
Environment
- Android Enterprise
- Knox Service Plugin (KSP)
- Google Accounts
- Samsung Accounts
Overview
A user can add accounts to a device, such as a Google and Samsung account, in Settings > Account and backup > Manage accounts. You can restrict the accounts types and specify accounts of an account type to be blocked by using the Knox Service Plugin (KSP).
How can I block the addition of a Google or Samsung account on a device?
You can prevent accounts from being added to a device by using KSP to set an Account Device Policy. In your EMM, set the following KSP configurations:
For Fully Managed devices:
-
Set Device-Wide policies > Enable work profile policies to True.
-
Under Device-Wide policies > Device Account Policy, set the following to True:
-
Enable Device Account Policy controls.
-
Enable Device Account policies (Configure profiles below).
-
For Work Profile or Fully Manged with Work Profile or Work Profile on Company-Owned Devices (WP-C):
-
Set Work profile policies > Enable device policy controls to True.
-
Under Work profile policies > Device Account Policy (Premium), set the following to True:
-
Enable Device Account Policy controls.
-
Enable Device Account policies (Configure profiles below).
-
Set the Device Account policy profile:
-
Go to Device Account Policy Configurations > Device Account Policy Configuration and add a configuration for each account type to be blocked:
-
Add Account Type to Addition Blocklist:
- “com.google” for Google accounts.
- “com.osp.app.signin” for Samsung accounts.
-
Add Accounts to Addition Blocklist: Enter the list of accounts to be blocked as a comma-separated list. For example, “
abc@google.com, xyz@google.com
”. You can use a wildcard to specify multiple accounts to blocklisted, for example, “*@google.com” or “.*” for all accounts.
-
-
Save and publish the configuration.
When a restricted account is attempted to be added to the device, the message “Security policy prevents addition of this account” will be presented to the user.
On this page
Is this page helpful?