---
# System prepended metadata

title: Untitled

---

WEB  OCE-133846
Verify that an end user is not able to add new email address while sending email to an account even with Explicit Opt Out permission set


STR
* SR user is present in the system and is available.
* The T_1 Topic is created and is shared with the Sales Rep.
* Email Template (ET_1) is created and is shared with SR user's territory.
* Email Template ET_1 has T_1 topic assigned and 'Ignore Opt' checkbox unchecked.
* A_1, A_2 accounts are present in the system and are available for the SR user.
* A_1 Account has the following combination of Opt and Opt Details:
‘Opt In’ with email value 'OptIn@mail.com' indicated.
‘Opt Out’ with email value 'OptOut@mail.com' indicated.
‘Not Asked’ with email value 'notasked@mail.com' indicated.
* A_2 has the following combination of Opt and Opt Details:
‘Opt In’ with no value indicated.
‘Opt Out’ with no value indicated.
‘Not Asked’ with no value indicated.
* 'Disable Add New Email Button' custom setting is checked (Admin Console -> Email app -> Settings).
* 'Disable Opt for Emails' custom setting is unchecked (Admin Console -> Email app -> Settings).
* ‘Opt Use’ permission set is added for SalesRep user.
* SR user has 'OCE.ShowAccountEmailsWhenExplicitOptOut' custom permission assigned.

AU user with admin permissions is present and is available.

STR
	
1. Login as a SalesRep and navigate to the Accounts tab.
Accounts tab is opened with the list of available accounts.

2. Select A_1, A_2 accounts and click on Email option from the More Action menu.
Email template selection screen has been opened.

3. Select ET_1 template and navigate to the recipients page by clicking Next button.
Recipients page has been opened. It contains A_1, A_2 accounts listed in the “Account(To)” section.

4. Open dropdown menu near the A_1 account email address.
It contains list with emails from Opts Details fields.
'Add new email' button is not available.

5. Open dropdown menu near the A_2 account.
It contains dash mark without 'Add new email' button available.

6. Login as an Admin user.
User has been logged in.

7. Navigate to Setup -> Profiles-> SR profile -> Enabled Custom Permissions, remove 'OCE.ShowAccountEmailsWhenExplicitOptOut' and click on Save button.
'OCE.ShowAccountEmailsWhenExplicitOptOut' custom permission has been unassigned from the SR user.

8. Login as a SR user.
SR has been logged in.

9. Repeat steps 2-5.
'Add new email' button is available for A_1, A_2 accounts.

10. Logout.
User has been logged out.