cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Successfactors Access to role based-assigned legal entities via OData API

Erkan
Explorer
0 Kudos
1,239

Hi,

Currently we are trying to access (read only) Legal Entities which are assigned through roles/permission groups.

We can set restrict target population while granting role to permission group for separate Legal Entities as below.

Eventually we would like to have exact same list of values while adding new employee (Company selection field)

However we cannot get this information while querying the OData API. Queries are being made with technical user.

Is there a way of getting this data from OData API or we should create some kind of MDF for this?

Thank you,

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

nlgro023
Active Contributor
0 Kudos

You basically want a dropdown list of legal entities via an API call (because then you can just call the "FOCompany" entity (on which you could apply a filter too, but I doubt that filter would add any value)?

Erkan
Explorer
0 Kudos

Hi Jasper,

Thank you for your answer and yes I am able to get all legal entities but for filtering I need to access to exceptions which are granted in first screenshot. I am convinced that we have this information in OData but I cant find it anywhere

nlgro023
Active Contributor
0 Kudos

I doubt you do with the API user. What it looks like on your screenshot is the hire screen, probably with some admin or HR services user. If the API user does not have similar restrictions in the role, then the API user will not be restricted in the values you could get from EmpJob (that's the entity where the hire wizard is taking the company field from). Even said so, the Odata api is supposed to only query particular values (and other values not) that are already stored, not what restrictions you are getting from a picklist, hence I doubt that you will be able to achieve a reduced list. The only way I could think of doing is by default applying a filter on certain legal entities for job info.