Symptom
How to fetch the Roles assigned to a User using OData API
Environment
- SAP SuccessFactors HXM Suite
- OData API
Resolution
To retrieve the roles assigned to a specific User ID, the getUserRolesByUserId function import can be used:
-
Example: /odata/v2/getUserRolesByUserId?userId='sfadmin'
For further information on all available RBP related function imports, please refer to:
- SAP SuccessFactors HXM Suite OData API: Reference Guide > Common Entities > Role-Based Permissions (RBP) > Function Import
https://help.sap.com/docs/SAP_SUCCESSFACTORS_PLATFORM/28bc3c8e3f214ab487ec51b1b8709adc/8c49f16571524bc7bfafdf8274392b9f.html
Keywords
OData API, User roles, permissions, get user role, RBPRole , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , LOD-SF-INT-API , API & Adhoc API Framework , How To
Product
SAP SuccessFactors HCM suite all versions