Account whitelist not working properly
I am having an issue when adding accounts to the account addition list. I specify the account type of "com.samsung.android.email" with a corresponding email account. I call the following method addAccountsToAdditionWhitelist(type, acounts) and the api returns true indicating the account was added successfully. But when i leave the mdm and go to the samsung email app and try signing in with an account to added to the account addition whitelist, I get a toast with the following message "security policy prevents addition of this account".
Knox Version: 3.0
Android Version: Android 8.0 (Oreo)
Samsung Galaxy Tab S3