2296073 - query operation for OData entity UserPermissions throws the error "invalid entity (or function) name: UserPermissions"

SAP Knowledge Base Article - Public

2296073 - query operation for OData entity UserPermissions throws the error "invalid entity (or function) name: UserPermissions"

Symptom

You notice the below error message when you run the UserPermissions Odata API

 "COE_ENTITY_NOT_FOUND"

"invalid entity (or function) name: UserPermissions"

Environment

Successfactors

Reproducing the Issue

Run the below odata api request

Request

https://apiX.successfactors.com/odata/v2/UserPermissions

Response

{
"error": {
"code": "COE_ENTITY_NOT_FOUND"
"message": {
"lang": "en-US"
"value": "invalid entity (or function) name: UserPermissions"
}-
}-
}

Cause

UserPermissions API cannot be consumed directly.

Resolution

UserPermissions odata API entity cannot be accessed directly.
It has to bind data record, then do an expand to fetch the corresponding user permission,

Example -

/odata/v2/User('avikas')?$expand=userPermissionsNav

Below is the API response.

odata response.jpg

See Also

http://help.sap.com/saphelpiis_cloud4hr/EN/SuccessFactors_HCM_Suite_OData_API_Handbook_en.pdf

http://help.sap.com/saphelpiis_cloud4hr/EN/SuccessFactors_HCM_Suite_OData_API_Reference_en.pdf

Keywords

UserPermissions api error , KBA , LOD-SF-INT , SF Integrations - EC Payroll, Boomi/ HCI, API , LOD-SF-INT-API , SF API & Adhoc API Framework , Problem

Product

SAP SuccessFactors HCM Core 1511 ; SAP SuccessFactors HCM Core 1602 ; SAP SuccessFactors HCM Core 1605 ; SuccessFactors HCM Core 1207 ; SuccessFactors HCM Core 1210 ; SuccessFactors HCM Core 1302 ; SuccessFactors HCM Core 1305 ; SuccessFactors HCM Core 1308 ; SuccessFactors HCM Core 1311 ; SuccessFactors HCM Core 1402 ; SuccessFactors HCM Core 1405 ; SuccessFactors HCM Core 1408 ; SuccessFactors HCM Core 1508