Symptom
- An API user assigned to a specific permission role is accessing data outside the defined scope.
- The API user retrieves both current and past employment records, including records from regions not permitted by the assigned role.
- Example: Employee currently working in Region North America has a past assignment in Brazil, and both records are returned via the API. However, API User should not have access to past assignment of the employee.
Environment
- SAP SuccessFactors HCM Suite
- Compound Employee API
Reproducing the Issue
- Assign the API user to a permission role that restricts access to specific regions or populations.
- Query the Compound Employee API for an employee with multiple employment records across different regions.
- Observe that the API response includes records outside the defined scope of the permission role.
Cause
- The permission for the Compound Employee API restricts accessible data based on the definition of the target population, such as a country/region or department.
- The permission check is performed at the person level. If a person has multiple employments, all employments are included in the response, even if the target population only includes a subset.
Resolution
Expected behavior.
As mentioned in the below Guide page: "The permission check is performed at the person level. If a person has multiple employments, all employments are included in the response, even if the target population only includes a subset."
Granting Permissions for Restricted Access to Compound Employee API
See Also
Keywords
compound employee api, permission scope, api data access, employment records, restricted access, target population, multiple employments, region permissions, api user permissions, data outside scope , KBA , LOD-SF-INT-CE , Compound Employee API , Problem
Product
SAP SuccessFactors Platform all versions
SAP Knowledge Base Article - Public