Native emails are sent if:
- Sending emails is not deactivated in a permission within an AccessControlRule.
- Your configuration uses scaffoldings that allow sending them for a specific feature.
To disable native emails, check your configuration to ensure that every permission between <AccessControlRule> ... </AccessControlRule>
is defined with Notify="false"
.
For Administration Features:
<Entry CanExecute="true" Notify="false" Permission="/Custom/ProvisioningPolicy/ReviewRoles/Directory_User" />
<Entry CanExecute="true" Notify="false" Permission="/Custom/ProvisioningPolicy/PerformManualProvisioning/Directory_User" />
<Entry CanExecute="true" Notify="false" Permission="/Custom/ProvisioningPolicy/ReconciliateRoles/Directory_User" />
<Entry CanExecute="true" Notify="false" Permission="/Custom/ProvisioningPolicy/ReconciliateResources/Directory_User" />
<Entry CanExecute="true" Notify="false" Permission="/Custom/ProvisioningPolicy/ReviewProvisioning/Directory_User" />
For Notifications Related to Jobs:
<Entry CanExecute="true" Notify="false" Permission="/Jobs/RunJob/Launch/Errored" />
<Entry CanExecute="true" Notify="false" Permission="/Jobs/RunJob/Launch/Blocked" />
<Entry CanExecute="true" Notify="false" Permission="/Jobs/RunJob/Launch/Aborted" />
<Entry CanExecute="true" Notify="false" Permission="/Jobs/RunJob/Launch/Completed" />
<Entry CanExecute="true" Notify="false" Permission="/Jobs/RunJob/Launch/Warning" />
<Entry CanExecute="true" Notify="false" Permission="/Jobs/RunJob/Repair/Errored" />
<Entry CanExecute="true" Notify="false" Permission="/Jobs/RunJob/Repair/Blocked" />
<Entry CanExecute="true" Notify="false" Permission="/Jobs/RunJob/Repair/Aborted" />
<Entry CanExecute="true" Notify="false" Permission="/Jobs/RunJob/Repair/Completed" />
<Entry CanExecute="true" Notify="false" Permission="/Jobs/RunJob/Repair/Warning" />
Next, you need to export the content of the scaffoldings you’re using. To export scaffoldings, you can use the tool Usercube-Export-Configuration.exe
. Detailed information can be found in the Knowldge Center documentation.
For example, consider the following scaffolding in your configuration:
<ReviewRolesAccessControlRules EntityType="Directory_Bot" Profile="Administrator" />
In the scaffolding export, you will find the permission /Custom/ProvisioningPolicy/ReviewRoles/Directory_Bot
.
To disable notifications for single role and composite role assignments, add these AccessControlRule in your configuration:
<AccessControlRule Identifier="Administrator_AssignedCompositeRole_Custom_ProvisioningPolicy_ReviewRoles_Directory_Bot" DisplayName_L1="Administrator - Review Roles" DisplayName_L2="Administrateur - Revue des rĂ´les" EntityType="AssignedCompositeRole" Profile="Administrator">
<Entry CanExecute="true" Notify="false" Permission="/Custom/ProvisioningPolicy/ReviewRoles/Directory_Bot" />
<Entry CanExecute="true" Permission="/ProvisioningPolicy/AssignedCompositeRole/Comment" />
</AccessControlRule>
<AccessControlRule Identifier="Administrator_AssignedSingleRole_Custom_ProvisioningPolicy_ReviewRoles_Directory_Bot" DisplayName_L1="Administrator - Review Roles" DisplayName_L2="Administrateur - Revue des rĂ´les" EntityType="AssignedSingleRole" Profile="Administrator">
<Entry CanExecute="true" Notify="false" Permission="/Custom/ProvisioningPolicy/ReviewRoles/Directory_Bot" />
<Entry CanExecute="true" Permission="/ProvisioningPolicy/AssignedSingleRole/Comment" />
</AccessControlRule>
Remember, for administration features, the permission will depend on your configuration. If you have named the entity to manage users as “Person,” you should look for the permission /Custom/ProvisioningPolicy/ReviewRoles/Person
instead of /Custom/ProvisioningPolicy/ReviewRoles/Directory_User
.