Symptom
You would want to generate User ID in the document but while generating document you get error 'You do not have permission to access the following placeholders : ***.' despite of proper permissions.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
- SAP SuccessFactor HXM Suite
- SAP SuccessFactors Employee Central
Reproducing the Issue
Please use reference mapping as SUBJECT_USER_ID. And if you get same error, then create User Id mapping as shown below: Job Information > User Id
Then go to Generate Document tool and try download or Generate Document > we get error: 'You do not have permission to access the following placeholders : ***.'
Cause
This is an expected behavior as the User Id referred in document is being fetched from Job Information (this field doesnt exisit in Job Information section but can be used to get User Id) and permission controls on EmployeeData > User Id wont help here.
Resolution
A workaround for this is to create a custom-string in Job Information and then use a rule to put the User Id value in this custom-string. A sample rule shown below:
Here Radford Job Code is custom-string. This rule will fetch User Id and put the value in custom-string.
You can then map this Job Information > custom-string in the Document Generation Mapping Template. Give atleast View permission for this custom-string and then generate document.
PS: This type of rule cannot fetch userID and store onto custom field during hire as no values of job data are available at the time of hire. It can be fetched only after the hire process using any onSave/onChange rule triggered in a separate transaction post hire. Then docGen can use this custom field value to fispaly the information.
Keywords
You do not have permission to access the following placeholders, generate, user ID, document, rule, Job Information , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC , Employee Central , Problem