on 2023 Mar 25 12:01 AM
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
Request clarification before answering.
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)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
8 | |
8 | |
5 | |
5 | |
3 | |
3 | |
2 | |
2 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.