SAP Knowledge Base Article - Public

2274132 - Odata API Entity "UserPermissions" doesn't return any results.

Symptom

You are trying to Query data from UserPermissions Odata API entity.

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

The below error is returned.

 "COE_ENTITY_NOT_FOUND"

Environment

Successfactors

Reproducing the Issue

Make an api call to fetch data from the Odata entity called "UserPermissions"

userpermissions.png

 

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

The below error is returned.

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

 

Cause

This API entity cannot be directly consumed and has to be called from the Odata User entity.

Resolution

userPermissions entity cannot be accessed directly.

It has to bind data record of a User and then expand further to fetch the corresponding user's permission.

The usage is shown below with an example:

https://apiX.successfactors.com/odata/v2/User('avikas')?$expand=userPermissionsNav

Here, avikas is the name of a valid user in the Successfactors system.

See Also

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

Keywords

Expand userPermissions   , KBA , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HCM Core all versions