SAP Knowledge Base Article - Public

2360199 - User Able to Delete Home Address Without Delete Permissions using Trash Can icon

Symptom

A user without delete permissions for Home Address, is able to delete their Home Address.

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

  • Employee Central - Home Address
  • Employee Central - Permissions 

Reproducing the Issue

  1. Proxy as a user without delete permissions for Home Address. 
  2. Navigate to the user's Personal Information page and select "Edit" on the Home Address portlet.
  3. The user can see the Trash Can icon and is able to delete their Home Address.

Cause

This is the expected system behaviour.

When the delete permission for "Home Address" under "Employee Central Effective Dated Entities" is not flagged in RBP, the "Delete" button is no longer visible in the "Home Address" history view and the deletion of the home address record is not possible:

1.jpg

 

However the Trash Can icon is still available in the edit mode. The Trash Can icon is not controlled by the Delete permission in RBP, and is considered an integral option of edit mode and is displayed in edit mode regardless of the whether the user has the delete permissions or not.

2.jpg

Resolution

From the 1808 release, you can configure the system to prevent the end users from deleting/removing 1 specific address type. Usually there will be 1 address type that is always consumed by a Payroll system, and to prevent Payroll from failing due to no address data, this configuration option has been delivered to enforce the employee to maintain this one address type with no possibility of deleting it. The chosen address type can still be edited.

PLEASE NOTE: The error will only trigger when using the "Pencil" (edit) icon to remove the address (when using the History icon, there will be no prevention as the History UI for Home Address is only for admins).

Configuration

  1. Go to Admin Center > Company System and Logo Settings
  2. Under the option "Protect address from deletion (Employee address of following type cannot be deleted in the edit mode to ensure it is available for downstream process like payroll):" select the Address Type you want to prevent deletion for.
  3. Scroll down and click "Save Company System Setting"

Config.jpg

 

 

Behaviour

An error message will be displayed when you remove the specified address type and try to save the data, preventing the deletion.

Error.jpg

Keywords

delete, trash can, trash-can, delete home address, home address, homeAddress, ECT-97279 , KBA , LOD-SF-EC-RBP , Roles & Permissions (EC Core only) , Problem

Product

SAP SuccessFactors Employee Central all versions